Your code should basically look like this:
CODE
<form name="myform" action="input.php" method="get">
<input type="text" name="field1" />
<input type="text" name="field2" />
<input type="hidden" name="field3" />
<input type="submit" name="submit" onclick="document.myform.field3.value=document.myform.field1.value+document.myform.field2.value; return true;"/>
</form>
<input type="text" name="field1" />
<input type="text" name="field2" />
<input type="hidden" name="field3" />
<input type="submit" name="submit" onclick="document.myform.field3.value=document.myform.field1.value+document.myform.field2.value; return true;"/>
</form>
Though I think by exactly according to your specs, it should look like this:
CODE
<form name="myform" action="input.php" method="get">
<input type="text" name="field1" />
<input type="text" name="field2" />
<input type="button" value="Submit" onclick="document.location=document.myform.action+'?field3='+document.myform.field1.value+document.myform.field2.value;"/>
</form>
<input type="text" name="field1" />
<input type="text" name="field2" />
<input type="button" value="Submit" onclick="document.location=document.myform.action+'?field3='+document.myform.field1.value+document.myform.field2.value;"/>
</form>
*pardon my text boxes, I'm lazy to do list boxes.*
This post has been edited by zBuffer: Jun 25 2008, 07:36 PM
Jun 25 2008, 07:21 PM
Quote
0.0166sec
0.53
6 queries
GZIP Disabled