turfbult
Jan 29th, 2001, 02:29 AM
Hello,
Please check this code and see if you know why it does not work!! I used to use a submit BUTTON, but I now just want to use an image. I tried putting the image "on top" of the button, but then it does not show in Netscape!!
<form name="frmprov" id="frmprov" method="POST" action="city.asp"
onSubmit="frmTest.thehidden.value=frmTest.theselect.value">
<input type="hidden" name="lstcountry" value="<%=Request.Form("lstcountry")%>"><dl>
<dd align="center"><div align="center"><center><p><select name="lstprovince"
id="lstprovince" size="1">
<%if varcountry <> "USA " then%> <option selected value "ALL">ALL</option>
<%end if%>
</select><input src="images/submit.gif" name="Submit" width="74" height="18" type="image"
onclick="redirectpage()" border="0"> </p>
</center></div></dd>
Sorry this did not come out as it should. Maybe someone can also tell me what to do if I want to submit CODE: on this forum!!??
There is some ASP code between all of this which populates a dropdown - I did not post this however!!
Hopefully you can make out what I'm trying to do. I used to use a BUTTON as the input type and it worked fine, now I want to use an image (like above) and I then get the error "frmTest is undefined".
It must have something to do with the "onsubmit" in my form section. The button "submits", but not the image!!
Thanks
T
Please check this code and see if you know why it does not work!! I used to use a submit BUTTON, but I now just want to use an image. I tried putting the image "on top" of the button, but then it does not show in Netscape!!
<form name="frmprov" id="frmprov" method="POST" action="city.asp"
onSubmit="frmTest.thehidden.value=frmTest.theselect.value">
<input type="hidden" name="lstcountry" value="<%=Request.Form("lstcountry")%>"><dl>
<dd align="center"><div align="center"><center><p><select name="lstprovince"
id="lstprovince" size="1">
<%if varcountry <> "USA " then%> <option selected value "ALL">ALL</option>
<%end if%>
</select><input src="images/submit.gif" name="Submit" width="74" height="18" type="image"
onclick="redirectpage()" border="0"> </p>
</center></div></dd>
Sorry this did not come out as it should. Maybe someone can also tell me what to do if I want to submit CODE: on this forum!!??
There is some ASP code between all of this which populates a dropdown - I did not post this however!!
Hopefully you can make out what I'm trying to do. I used to use a BUTTON as the input type and it worked fine, now I want to use an image (like above) and I then get the error "frmTest is undefined".
It must have something to do with the "onsubmit" in my form section. The button "submits", but not the image!!
Thanks
T