ID: 11564
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
This is a browser issue, since it uses # as the key that it needs to go that
particular anchor of a page.
Use urlencode when passing variables in the URL like that.
<?
if($name) {
echo $name;
}else{
echo "<a href=\"$PHP_SELF?name=".urlencode("#asdf")."\">Click me</a>";
}
?>
-Chris
Previous Comments:
---------------------------------------------------------------------------
[2001-06-19 12:18:54] [EMAIL PROTECTED]
<?
if($name) {
echo $name;
}else{
echo "<a href="$PHP_SELF?name=#asdf">Click me</a>";
}
?>
When you click on 'Click Me', it displays the link again, when it should output
'#asdf'. This does not happen using the POST method.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11564&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]