----- Original Message -----
From: malte
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 10:43 PM
Subject: Re: [PHP-WIN] Problem with 2 buttons
what do you need this for? -><input type="hidden" name="CHANGE">
it does nothing
give your image inputs hard-coded values, like
<input type="image" name="cancel" src="bla.gif" value="true">
<input type="image" name="cancel" src="bla.gif" value="false">
and don't use isset try:
if($cancel=='true') do_some_stuff();
----- Original Message -----
From: William Cheung
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 7:43 PM
Subject: [PHP-WIN] Problem with 2 buttons
I have 2 buttons sitting next to each other. One to update; the other to cancel.
However, no matter which button I click, the isset($_POST["CHANGE"]) always returns
true. My template code is list below. Could someone tell me what's wrong with my code?
<tr height=60>
<td width="5%"> </td>
<td valign=bottom>
<input type="hidden" name="CHANGE">
<input type=image name=CHANGE
src={#img_dir#}{#template#}page6grid_g3.gif
onmouseover="this.src='{#img_dir#}{#template#}page6grid_g4.gif'"
onmouseout="this.src='{#img_dir#}{#template#}page6grid_g3.gif'">
<font class=mpanel_mid_data style="font-weight: lighter;">Update
order</font>
</td>
<td valign=bottom>
<input type="hidden" name="CANCEL">
<input type=image name="CANCEL"
src={#img_dir#}{#template#}page6grid_g11.gif
onmouseover="this.src='{#img_dir#}{#template#}page6grid_g12.gif'"
onmouseout="this.src='{#img_dir#}{#template#}page6grid_g11.gif'">
<font class=mpanel_mid_data style="font-weight: lighter;
text-indent: 0px;">Cancel order</font>
</td>
</tr>
William Cheung B.Sc, MCSE, MCDBA
Databyte Corp.