Currently I am passing numerous global values from page to page through the URL (?value=value&....). I would like to pass them with <form method="post"> so they do not display in the URL but I am using <a href> links.
I know you can create a javascript generic form submitter but I would like to take it a step further. I want to avoid having to print a hidden input box for each link for each global value.
So what I need to do is have a farm of hidden boxes with the global values that get sent when you click a link like this:
You click this link:
<a href="script.php" id="2">Click Here</a>
And the values of this generic form are sent:
<form>
<input type="hidden" name="gv1" value="Global Value 1">
<input type="hidden" name="gv2" value="Global Value 2">
<input type="hidden" name="gv3" value="Global Value 3">
<input type="hidden" name="id" value="(a href id)">
</form>
So when you click the link the form "id" input box value is updated with "2" and the form is sent to the php script called in the <a href> tag.
Thanks in advanced for any help.
I know you can create a javascript generic form submitter but I would like to take it a step further. I want to avoid having to print a hidden input box for each link for each global value.
So what I need to do is have a farm of hidden boxes with the global values that get sent when you click a link like this:
You click this link:
<a href="script.php" id="2">Click Here</a>
And the values of this generic form are sent:
<form>
<input type="hidden" name="gv1" value="Global Value 1">
<input type="hidden" name="gv2" value="Global Value 2">
<input type="hidden" name="gv3" value="Global Value 3">
<input type="hidden" name="id" value="(a href id)">
</form>
So when you click the link the form "id" input box value is updated with "2" and the form is sent to the php script called in the <a href> tag.
Thanks in advanced for any help.