View Single Post
  #1 (permalink)  
Old Apr 21st, 2008, 10:46
sing2trees sing2trees is offline
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Help with 'if Request.Form' on form

Hi all,

I have a form through ASP where users enter their home and mobile phone number.

For the other fields, I use the following script to get them to enter the details if they leave it blank:

if Request.Form("PostalCode") = "" then strErrorMessage = strErrorMessage & "<p>Please enter
your Postal Code.</p>"

How can I do it so that if both the home and mobile number is empty, it says 'Please enter one contact number' - otherwise if only one is filled in, it allows it to go through?!

All advice and help welcomed!

Thanks

Ben
Reply With Quote