Thanks James, but I'm still having problem passing the value of the button to my asp. This is what I did and let me know if I'm doing it wrong.
<body onload="document.areaform.area_no.focus();">
<form name="areaform" action="update.asp?action=area_info" method="post" onsubmit="return verifyarea()">
<center>
<h3>Update Area Information</h3>
<table>
<tr><td>Area Number<input type="text" name="area_no" maxlength="5" size="5"></td>
<tr><td align="center"><input type="image" src="add.gif" id="area" name="add_area">
<input type="image" src="update.gif" id="area" name="update_area">
<input type="image" src="delete.gif" id="area" name="delete_area"></td>
</table>
When it gets to the update.asp, I want to find out which button was clicked, this is what I did.
<%
update_action=request.form("area"
if update_action="delete_area" then
...code
else if update_action="update_area" then
...code
else if update_action="add_area" the
...code
end if
end if
end if
When I click any of the button, it just display a blank page.
Can anybody tell me what I'm doing wrong.
thanks,
<body onload="document.areaform.area_no.focus();">
<form name="areaform" action="update.asp?action=area_info" method="post" onsubmit="return verifyarea()">
<center>
<h3>Update Area Information</h3>
<table>
<tr><td>Area Number<input type="text" name="area_no" maxlength="5" size="5"></td>
<tr><td align="center"><input type="image" src="add.gif" id="area" name="add_area">
<input type="image" src="update.gif" id="area" name="update_area">
<input type="image" src="delete.gif" id="area" name="delete_area"></td>
</table>
When it gets to the update.asp, I want to find out which button was clicked, this is what I did.
<%
update_action=request.form("area"
if update_action="delete_area" then
...code
else if update_action="update_area" then
...code
else if update_action="add_area" the
...code
end if
end if
end if
When I click any of the button, it just display a blank page.
Can anybody tell me what I'm doing wrong.
thanks,