floppy
01-27-2004, 10:51 AM
Hello
I have a small form ("go to page number x") and I want to replace the default "input" button by my own little gif button but it doesn't work :
----- My failed attempt
<input name="imageField" type="image" src="../images/GoButton.gif" width="25" height="25" border="0"
onclick="var p = this.form.pageNum.value-1; location.href='<?php echo $HTTP_SERVER_VARS["PHP_SELF"] ?>' +
'?pageNum_rsMaster=' + p + '<?php echo $queryString_rsMaster?>';" />
----- the original working button
<input type="button" name="Submit3" value="go"
onclick="var p = this.form.pageNum.value-1; location.href='<?php echo $HTTP_SERVER_VARS["PHP_SELF"] ?>' +
'?pageNum_rsMaster=' + p + '<?php echo $queryString_rsMaster?>';" />
Could somebody please tell me how to make my gif button work ? :confused:
Thank you
I have a small form ("go to page number x") and I want to replace the default "input" button by my own little gif button but it doesn't work :
----- My failed attempt
<input name="imageField" type="image" src="../images/GoButton.gif" width="25" height="25" border="0"
onclick="var p = this.form.pageNum.value-1; location.href='<?php echo $HTTP_SERVER_VARS["PHP_SELF"] ?>' +
'?pageNum_rsMaster=' + p + '<?php echo $queryString_rsMaster?>';" />
----- the original working button
<input type="button" name="Submit3" value="go"
onclick="var p = this.form.pageNum.value-1; location.href='<?php echo $HTTP_SERVER_VARS["PHP_SELF"] ?>' +
'?pageNum_rsMaster=' + p + '<?php echo $queryString_rsMaster?>';" />
Could somebody please tell me how to make my gif button work ? :confused:
Thank you