...

View Full Version : submit for with link



nikko50
12-18-2004, 10:10 PM
The below code submits the form but I'm not able to see the variable "prev" on the next page?? Are they being passed??

<form method="POST" action="test2.php" name="theForm" >
Record: <? echo "$currentkey of $getnumrows" ?>
<input type="button" value="Prev" class="normal" name="prev" onClick="javascript:document.theForm.submit();">
</form>

Willy Duitt
12-19-2004, 03:42 AM
Inputs without a name are not passed... However, input type=submit or input type=image will pass their value without a name, and in the case of input type=image the x/y coordinates of where the image was clicked on will also be passed (this initself cause many problems for those unaware of this)... Solution: name your button or use a type=submit as you should be using...

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum