[thelist] Possible Bug Form Validation ASP

Jay Blanchard jay.blanchard at niicommunications.com
Wed Feb 23 12:03:56 CST 2005


[snip]
...or it could just be out of ignorance.

I like to have form one page to do the form and form processing in ASP. 

add.asp
<%
  if not request.querysting("submit") = "" then
    'do form validation
    if everything checks out ok then	
      response.redirect "someinsertpage.asp"
    end if
  end if
%>
<html>
<form method="get" action="add.asp"></form>
</html>

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.
[/snip]

What is the value of request.form when you do it via the POST method?


More information about the thelist mailing list