Jump to content

daddywifi

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

daddywifi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Orio, Yes an "A" or "B" value. Also thanks HuggieBear, but I am unsure what all of the items in the expressions you provided mean :( Here is a better ex of what I am doing: I have some users that are identified by a unique 14 digit#, but the first 5 digits of the number meet 2 different values either value "A" or value "B". I provide a subscription service that they can access from home, but want to verify that they are my users before allowing access to the service. In doing this I need to be sure they dont enter a null value, that the value entered is 14 digits, and that it matches either value "A" or value "B". I had this created to evaluate the form field, but it returns false each time: if (empty($id) || strlen($id) != 14 || substr($id,0,5) != '12345' || substr($id,0,5) != '09876') Thanks again for the help
  2. I am still new to PHP and I am trying to create a page to evaluate a form field for the following things: 1. Not be empty, which I have successfully completed 2. To be a certain length, which I have also sucessfully completed 3. That the first 5 characters be 1 of 2 different values Can anyone help me? Thank you.
×
×
  • 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.