[thelist] Possible Bug Form Validation ASP
Matt Warden
mwarden at gmail.com
Wed Feb 23 11:28:02 CST 2005
Rob,
On Wed, 23 Feb 2005 11:04:14 -0600, Rob Smith <rob.smith at thermon.com> wrote:
> BUT!!! When method goes to "post", internal form validation doesn't work. if
> not request.form("submit") = "" then NEVER catches and NEVER gets redirect
> to the insert page.
So, you are saying that the code you posted works, but the following does not?
<%
if not request.form("submit") = "" then
'do form validation
if everything checks out ok then
response.redirect "someinsertpage.asp"
end if
end if
%>
<html>
<form method="post" action="add.asp"></form>
</html>
By the way, your script will fail if the form is submitted by hitting
the 'enter' key instead of clicking the button.
--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list