This is a discussion on "Help with 'if Request.Form' on form" within the Classic ASP section. This forum, and the thread "Help with 'if Request.Form' on form are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Help with 'if Request.Form' on form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
||||
|
||||
|
Re: Help with 'if Request.Form' on form
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#3
|
|||
|
|||
|
Re: Help with 'if Request.Form' on form
that is fantastic - many thanks for that!!!
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiding / Showing form fields based on previous form input | John Alexander Hopper | PHP Forum | 1 | Mar 10th, 2008 11:30 |
| form variable within an iframe component of a form | kissfreaque | JavaScript Forum | 5 | Feb 29th, 2008 11:57 |
| [SOLVED] PHP contact form redirect to same form | Posie | PHP Forum | 14 | Jan 29th, 2008 20:28 |
| ASP form to check weather a form value is already in the database | Andrew1986 | Classic ASP | 3 | Oct 25th, 2007 08:23 |
| request.form fails | ppetree | Classic ASP | 1 | Mar 15th, 2007 11:19 |