Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:08:21+00:00 2026-06-17T17:08:21+00:00

First of all, let me show you a bit of code: index.php <a href=new-directory-dialog.php

  • 0

First of all, let me show you a bit of code:

index.php

<a href="new-directory-dialog.php" data-role="button" data-rel="dialog" data-transition="slidedown"><?php echo localize('New directory'); ?></a>

So, as you can see, I use new-directory-dialog.php as a dialog window. All works fine on local machine, using Wamp server on Win 7 x64. But on my web host server, every dialog page is displayed with ?> (or ?&gt;) chars.
HTML tab in Firebug shows this output:

<html class="ui-mobile">
<head>
<base href="http://pantljika-online.info/link/new-directory-dialog.php">
</head>
<body class="ui-mobile-viewport ui-overlay-a">
?>
<title>Novi direktorij</title>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">

I have no clue why is this happening.
Here is entire code for dialog page:

<?php
include('localize.php');
?>
<!DOCTYPE html>
<html>
    <head>
        <title><?php echo localize('New directory'); ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
        <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
    </head>
    <body>
        <div data-role="page" data-theme="<?php echo $_SESSION['data-theme']; ?>" >
            <form action="index.php" method="post">
                <fieldset>
                    <div data-role="header">
                        <h1><?php echo localize('New directory'); ?></h1>
                    </div>

                    <div data-role="content">
                        <label for="new-directory-name">
                            <?php echo localize('Name'); ?>:
                        </label>
                        <input type="text" id="new-directory-name" name="new-directory-name" />
                    </div>

                    <div data-role="footer">
                        <h4>
                            <button type="submit" name="submit" value="submit-value"><?php echo localize('Create'); ?></button>
                        </h4>
                    </div>
                </fieldset>
            </form>
        </div>
    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:08:22+00:00Added an answer on June 17, 2026 at 5:08 pm

    OK, problem solved. I deleted PHP closing tag (?>) in one of the included php files and it stopped showing up on dialogs. Also I had to encode all php files from UTF8 to UTF8 without BOM. Otherwise jQuery puts head metatags and title tag inside body element…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First let me show some code. class User has_and_belongs_to_many :roles named_scope :employees, { :conditions
First of all let me tell you that i have read the following questions
First of all, let me say that I am not a professional coder -
I've got a weird problem with udp sockets. First of all, let me provide
First of all, I'm quite new to the Android and JAVA world (coming from
First of all I want to mention two things, One: My code isn't perfect
First of all: 'Locally' neither means localhost, nor local folder. It means a code
First of all, Thread.Abort() is evil - got it! Now let me explain my
I'm currently in a stagnant (stuck) point here. First of all, let me clearly
maexculture.tumblr.com is my site. Just installed the facebook button and first of all, it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.