Thread: form validation
View Single Post
  #2 (permalink)  
Old January 20th, 2007, 08:46 AM
Adam H-W Adam H-W is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

What scripting are you wanting to use?

You can do it with a combination of ASP & Javascript; for example, something like this.

<%

if request.form("username") = "yourdomain.com" then

response.redirect("yourpage.asp")

else

%>

<script language="javascript">

window.alert("Invalid Username")

window.history.go(-1)

</script>


<form>form action="" method="post">

<input type="text" name="username">

<input type="button" value="submit" name="submit">

</form>