note 53505 added to language.variables.external
| From: | geminygirl at yahoo dot com | Date: | Fri, 03 Jun 2005 18:38:33 +0000 |
| Subject: | note 53505 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89880@lists.php.net to get a copy of this message | ||
HELP NEEDED!!!!
Hi everybody, I am new to PHP.
I am trying to read a value appended to the url
<a href="../handbook/app2.php#app2?id=<?php print $p; ?>"
and I am reading the corresponding value by the following code:
<?php
$pageName;
$pageName = $_GET['id'];
if( $pageName == 1){
do something....
} else {
do something else...
}
?>
now i am not getting any value in my $pageName.
But as soon as i remove the #app2 from the url ie make it :
<a href="../handbook/app2.php?id=<?php print $p; ?>"
it works fine.
Can anyone help me by telling me how to retrieve the appended variable to the url that has
bookmarks.
----
Manual Page -- http://www.php.net/manual/en/language.variables.external.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53505
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53505&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53505&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53505&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53505&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53505&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53505&report=yes
Search -- http://master.php.net/manage/user-notes.php