Image

Imagedisintigry wrote in Imagephp

have a question, I need to validate form information against a list, if one of the fields contains a string that isn't in the list the script needs to abort with an error message. For some reason this isn't working, been trying it with strpos but that doesn't seem to work, anyone have any suggestions? the code is following behind the cut.

");
   }
   
// prints the ending tags for the HTML page

   function html2()
   {
      print("</html>");
   }

// configures the email addresses in the $elist array

   $elist[] = "test1@gere.net";
   $elist[] = "test2@gere.net";
   $elist[] = "test3@gere.net";

// checks to make sure the email address submited is in the $elist array

checkEmail();

if ($continue == "TRUE")
  {
    if ($email)
   {

      htmlSetup();
           print("
"); print("

Title:"); print(""); print("First Name:"); print(""); Print("Middle Initial :"); print(""); print("Last Name :"); print(""); print("Suffix :"); print(""); print("

"); print("

Telephone :"); print(""); print("Ext: "); print(""); print("Cell Phone : "); print(""); print("

"); print("

Please enter phone numbers in the following format : 555-555-1515.

"); print("

Dealership : "); print(""); print("

"); print("

Email Address :"); print($email); print("

"); print("Password : "); print("
"); print("
Confirm Password : "); print("
"); print(""); print("

"); print(""); print(""); print("

"); print("
"); html2(); } } else { htmlSetup(); print("Input not valid, please notify the appropriate person."); html2(); } ?>