Re: How can I pass a variable via a url?
| From: | Rolf Brusletto | Date: | Wed, 16 Apr 2003 19:41:27 +0000 |
| Subject: | Re: How can I pass a variable via a url? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144171@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
foreach($jobID as $v) {
echo "<a href=\"$PHP_SELF?jobID=$v\">click here</a>";
};
to show the page,
if(isset($jobID)) {
//show html needed for given jobID
};
Rolf Brusletto
PHP/MySQL Coder
Security Admin
rbrusletto@phpexamples.net
http://www.phpexamples.net
Info@Best-IT wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro* How can I pass a variable via a url? I have a table generated by a MYSQL query, in order to isolate one entry I would like to click a link to the same page except with $jobID defined to the reloaded version of the page. I was thinking something like: <a href="/samepage.php?jobID=1">click here</a> Thanks for your help! /T