Forum Moderators: coopster
.$_GET['xx'] works in the main PHP script but not in the links.
Example :
abc.html uses a form of method get and action xyz.php.
In xyz.php some info is displayed by using .$_GET['']
But links in xyz.php are not able to use the same and hence unable to get db info.
The dot before the $_GET is doing the trick.
But it works fine for the action file but not for links.
Any help reg. $_GET usage would be appreciated.
I have a form abc.html which has method get.
Now action needs to be several files as and when clicked on the links.
What is the syntax for that?
Any help reg. $_GET usage would be appreciated.
The manual pages regarding Predefined Variables [php.net] is a good start. You may also want to keep the print_r() funtion in mind. I use it quite often to dump the values of the superglobals variables to troubleshoot. Put something like this at the top of your action page:
print '<pre>';
print_r($_GET);
print '</pre>';