Tidy up

Results 1 to 2 of 2

Thread: Tidy up

  1. #1
    Join Date
    Dec 1969

    Default Tidy up

    Hi All,<BR><BR>I would like to tidy up the following code, an think it would be good to use a 2 diminensional array<BR><BR>&#060;%<BR>&#039;Verify User has Filled out all required fields<BR>IF Request("firstName")="" OR Request("lastName")="" OR Request("email")="" OR Request("homePhone")="" OR Request("hasInternetAtHome")="1" OR Request("hasComputerAtHome")="1" OR Request("state")="0" Then<BR>%&#062;<BR><BR>The first part of the array would hold the request&#039;name&#039; and 2nd part the unwanted value. I then imagine I could use a loop to check each value in turn<BR><BR>How would i code this in VBScript?

  2. #2
    Join Date
    Dec 1969

    Default Better yet..

    ..use Java Script to validate the fields, why do you even want to go to the next page to check the values. Write a function, call it on the "onsubmit" of FORM or "onclick" of submit button.

Posting Permissions

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