Re: passing variable question
| From: | Marco Tabini | Date: | Mon, 11 Nov 2002 22:00:52 +0000 |
| Subject: | Re: passing variable question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123901@lists.php.net to get a copy of this message | ||
You just need to add a question mark, the name of the variable, an equal
sign and its value (properly encoded):
echo '<a href=myurl?myvalue=' . urlencode ($value) . '>';
In the receiving script, you can read the value using $_GET['myvalue'];
Hope this helps!
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!