Code: Select all
<?
ini_set("register_globals", "on");
echo "Query String = " . $_SERVER['$QUERY_STRING'];
?>
<?
if ($QUERY_STRING == "About") {
?>
<p>
<strong>About Me:</strong>
<br/><br/>
<?php
include("about.php");
?>
</p>
<?
}
?>Moderator: General Moderators
Code: Select all
<?
ini_set("register_globals", "on");
echo "Query String = " . $_SERVER['$QUERY_STRING'];
?>
<?
if ($QUERY_STRING == "About") {
?>
<p>
<strong>About Me:</strong>
<br/><br/>
<?php
include("about.php");
?>
</p>
<?
}
?>Code: Select all
echo '<hr><pre>';echo print_r ($_SERVER).'</pre><hr>';Code: Select all
echo "Query String = " . $_SERVER['$QUERY_STRING'];Code: Select all
echo "Query String = " . $_SERVER['QUERY_STRING'];Sorry, I forgot to include this in my post:hawleyjr wrote:print_r the $_SERVER variable to see what the query string is. Are you passing any vars through it?
Code: Select all
echo '<hr><pre>';echo print_r ($_SERVER).'</pre><hr>';
Code: Select all
<a href="e;?About"e;>About</a><br/>senthilnayagam wrote:if this is the code you used
you made a small mistakeyou should have usedCode: Select all
echo "Query String = " . $_SERVER['$QUERY_STRING'];
that additional data '$' caused all those problems,Code: Select all
echo "Query String = " . $_SERVER['QUERY_STRING'];
regards
Senthil