Re: How can I pass a variable via a url?
| From: | CPT John W. Holmes | Date: | Wed, 16 Apr 2003 19:09:06 +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-144179@lists.php.net to get a copy of this message | ||
> 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>
That's how you do it. Isn't this covered on page one of any tutorial??
You get the value with $_GET['jobID'], btw.
echo "You chose: " . $_GET['jobID'];
---John Holmes...