Good Morning Good People...
I have a question that I can't seem to find the answer to anywhere, so decided someone in here would know...
Simplest explanation...
I have a form which has 2 submit buttons... one to accept and one to decline
Each of them needs to set the same variable to different values.
I can do this easily by assigning the value in the input line, but this doesn't allow for me to use an image to click on, as opposed to a text link...
The question...
Is there a way to use an image for the link, and still assign a value to the name in the input line?
Any help or direction would be greatly appreciated.
What I tried to use was this:
<input type="image" name="subbed" src="../images/button_accept.png" width="113" height="34" border="0" alt="Accept Payment" value="a">
But assigning the value in that manner just doesn't accomplish the desired result
Here is what I have that works, without the image
<form name="<?php print $row_rq[12]; ?>" action="<?php print $_SERVER['PHP_SELF'];?>" method="POST">
<tr bgcolor="<?php print $row_bg; ?>">
<td align="center" valign="top" width="100" height="15"><b><font size="-1">Member Username</font></b><br><?php print $row_rq[12]; ?></td>
<td align="left" valign="top" width="250" height="15" rowspan="2">
<b><font size="-1">Contact Information</font></b><br><?php print $row_rq[4]; ?><br><?php print $row_rq[5]; ?>
<?php if ($row_rq[6]<>''){print "<br>".$row_rq[6];} ?>
<br><?php print $row_rq[7]; ?>, <?php print $row_rq[8]; ?> <?php print $row_rq[9]; ?><br><?php print $row_rq[10]; ?><br><?php print $row_rq[11]; ?>
</td>
<td align="center" valign="top" width="250" height="15"><b><font size="-1">Payout Amount</font></b><br><?php print $row_rq[2]; ?></td>
<td align="center" valign="middle" width="100" height="15">
<input type="submit" name="subbed" value="D">
</td>
</tr>
<input type=hidden name="user" value="<?php print $row_rq[12];?>" />
<input type="hidden" name="dest" value=<?php print $dest;?> />
<input type="hidden" name="wthd_id" value=<?php print $row_rq[0]; ?> />
<input type="hidden" name="amt_paid" value=<?php print $row_rq[2]; ?> />
<input type="hidden" name="mem_id" value=<?php print $row_rq[1]; ?> />
<input type="hidden" name="email" value=<?php print $row_rq[13]; ?> />
<input type="hidden" name="req_date" value=<?php print $row_rq[3]; ?> />
<input type="hidden" name="display" value=<?php print $display; ?> />
<tr bgcolor="<?php print $row_bg; ?>">
<td align="center" valign="top" width="100" height="15"><b><font size="-1">Date Requested</font></b><br><?php print $row_rq[3]; ?></td>
<td align="center" valign="middle" width="250" height="15"><b><font size="-1">Enter Transaction ID</font></b><br><input name="trans_id" type="text" size="20" maxlength="24"></td>
<td align="center" valign="middle" width="100" height="15">
<b><font size="-1">Net Paid</font></b><br><input name="net_pay" type="text" size="10" maxlength="10">
</td>
</tr>
<tr bgcolor="<?php print $row_bg; ?>">
<td align="center" valign="middle" width="100" height="15"><b><font size="-1">Note to Payee</font></b></td>
<td align="center" valign="top" width="500" height="15" colspan="2">
<textarea name="note" rows="2" cols="60"></textarea>
</td>
<td align="center" valign="middle" width="100" height="15">
<input type="submit" name="subbed" value="a">
</td>
</tr>
</form>