Jump to content

Mazer14

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Mazer14's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Cool, so I got those worked out. One more question though. Trying to have an error occur when they leave a text field blank: if (empty($_POST['name']) || $_POST['name'] == " " || $_POST['name'] == " " || $_POST['name'] == " ") Is there a method to make an error occur any time a string of spaces are entered instead of having to do " " and " " and " " and so on?
  2. Ahh, figured out #2 as you entered your reply if($_POST['field'] == 'none') Was what I had done. I'll look at your post. Thanks man!
  3. Having trouble figuring this out. 1) How can I check whether the user's input for a field is an integer with a value greater than 0? Was thinking of using regular expressions using 1-9 but then 10 might result in an error and that's not wanted. 2) For a field that's a drop-down, how can I have an error show if they choose the default option (value of "none") Thanks for the help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.