Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i pass the value of a button to an asp?

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I am using 3 images as submit buttons on my form. When the buttons are clicked, it calls some client-side function which will eventually return true and open up an asp.
How do I pass the value of these buttons to the asp? This is a sample of my code:

<body bgcolor=&quot;white&quot; text=&quot;black&quot; onload=&quot;document.areaform.area_no.focus();&quot;>
<form name=&quot;areaform&quot; action=&quot;update.asp?action=area_info&quot; method=&quot;post&quot; onsubmit=&quot;return verifyarea()&quot;>
<center>
<h3>Area Information</h3>
<table border=&quot;0&quot; width=&quot;75%&quot; background=&quot;greenps.gif&quot;>
<tr><td><font size=&quot;1&quot; face=&quot;verdana&quot;>Area Number<input type=&quot;text&quot; name=&quot;area_no&quot; maxlength=&quot;5&quot; size=&quot;5&quot;></td>
<tr><td><input type=image src=add.gif>
<input type=image src=update.gif>
<input type=image src=delete.gif></td>
</table>

Any help will be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top