Jump to content

cc4digital

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cc4digital's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello everyone. This is a logic question that I am trying to figure out. Why does this not mean the same thing? if(!$lowgradelevel<$highgradelevel) VS if($lowgradelevel>$highgradelevel Thanks
  2. Thanks everyone for your input. Great. answered my question a few different ways. Thanks, Crayon Violent for showing me the regex route. I am finding regex a very difficult concept to master. Does anyone have any good recommendations on how to learn regex. I like to use pregmatch(), but I just don't get the patterns. :'( thanks chuck
  3. Hello Everyone; What I want to do is validate the user has only put a whole number. eg. 1 , 10 , or 100 What I do not want is them to put 10.1. So what I have is-- $pricecheckpattern ="#^[0-9]{0}#"; if (preg_match($pricecheckpattern, $years)) { echo "This has passed validation for year {$years} <br />"; } else { echo "This has passed validation for year {$years}<br />"; } The problem is it will accept 10.1, which I do not want. :'( Any help on this would be GREAT.
×
×
  • 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.