Form validation

Results 1 to 3 of 3

Thread: Form validation

  1. #1
    Vashon Guest

    Default Form validation

    I have created a simple form that when sent, e-mails the results to me. Unfortunately, I have been getting a ton of blank forms submitted. Is there a simple ASP code that I can add to prevent blank forms from being sent to e-mail?

  2. #2
    Join Date
    Dec 1969

    Default RE: Form validation

    Definately!<BR><BR>Something like.<BR><BR>If Request.Form("messagebox1") = "" Then<BR>sTempStr = "You must fill out the messagebox box boy!"<BR>%&#062;<BR>&#060;script language="javascript"&#062;<BR> alert("&#060;%=sTempStr%&#062;");<BR> history.back();<BR>&#060;/script&#062;<BR>&#060;%<BR>Else...<BR><BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Form validation

    You can do this client (browser) side or server side. Client side is the preferred method since it uses the users&#039 machine resources and not the webservers.<BR>Client side:<BR><BR>and<BR><BR><BR>Server side:<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts