Jump to content

AndrewAK

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by AndrewAK

  1. This Link refers to a file that is in the main folder <link rel="stylesheet" type="text/css" href="mystyle.css"> What is the proper path used when referencing a file located in a sub-folder?
  2. Thank you Gabrielphp, that worked perfectly. I tested for the negative. if(!is_numeric($phonenum1)){ $phonenum1Err="Only numbers0-9"}
  3. Here is a snippet of my code. It works fine, but checks for upper and lower case letters. if (empty($_POST["lastname"])) { $lastnameErr = "Lastname is required"; } else { $lastname = test_input($_POST["lastname"]); if (!preg_match("/^[a-zA-Z ]*$/",$lastname)) { $lastnameErr = "Only letters and white space allowed"; } } I need this to check for numbers only IE: 0-9 for a phone number format. Thank you
×
×
  • Create New...