links and variables
| From: | Dan Shirah | Date: | Thu, 12 Apr 2007 14:14:14 +0000 |
| Subject: | links and variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-252734@lists.php.net to get a copy of this message | ||
Greetings!
I have a page that has several links that point to the same page. I want to
pass a variable to the linked page depending on which link the user clicks
to only display a result set that is relevant to the link clicked. I know
clicking on a link does not submit the page, so there would not be a $_POST
value assigned. Is there a way to pass a hidden value through a link
without requiring the submit?
If not, do you think it would make more sense to create three seperate pages
for the link to point to?
Or put form tags around the content and leave the action blank and then just
use the javascript "onClick form.action='mypage';" ??
<tr>
<td valign="top"><a href="/Process/Process.php" class="med" >To Be
Corrected</a></td>
<td><span class="TableLine">Correct erroneous payment
requests.</span></td>
</tr>
<tr>
<td width="235" valign="top"><a href="/Process/Process.php"
class="med">To
Be Processed</a></td><td width="353"><span class="TableLine">Process received payment requests.</span></td> </tr> <tr> <td valign="top"><a href="/Process/Process.php" class="med">To Be Reviewed</a></td> <td><span class="TableLine">View payment requests that require special attention..</span></td> </tr>