I'm trying to figure out how to Pass a Variable in a Javascript Form and be able to output it in PHP. This is what I have so far and it doesn't work. It must be a text link with multiple submit options.
<form name="theForm" action=<? echo $PHP_SELF; ?>>
<a href="javascript:document.theForm.submit(this.theForm.temp=1);">Submit</a>
<a href="javascript:document.theForm.submit(this.theForm.temp=2);">Submit 2</a>
</form>
<?
if (isset($temp))
echo $temp;
?>
Thanks for helping.