note 53505 rejected from language.variables.external by nlopess
| From: | nlopess@php.net | Date: | Fri, 03 Jun 2005 18:40:46 +0000 |
| Subject: | note 53505 rejected from language.variables.external by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89881@lists.php.net to get a copy of this message | ||
Note Submitter: geminygirl at yahoo dot com
----
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.