Re: pass var through URL String
| From: | Gary | Date: | Thu, 19 Sep 2002 20:50:26 +0000 |
| Subject: | Re: pass var through URL String | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116934@lists.php.net to get a copy of this message | ||
Tried that already and get an error using $_GET['bname']
T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
using $_GET[bname] without the quotes
Undefined index: bname
Gary
Kevin Stone wrote:
Pass the vars the same way. Use $_GET['bname'] to retrieve the var. -Kevin ----- Original Message ----- From: "Gary" <garyb10@earthlink.net> To: <php-general@lists.php.net> Sent: Thursday, September 19, 2002 1:54 PM Subject: [PHP] pass var through URL StringHi All, Using a link <a href=\"bla.php?bname=$bname\">$bname</a> I could pass $bname to another page and using "SELECT * FROM table WHERE bname = \"$bname\""; I could get all I need from the db on the new page. Now that globals have been turned off and superglobals are replacing them. How should I pass and catch the var? TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php