Numeric text value

A

Anonymous

Guest
On tally.php you would have some code like this.

Code:
if (isset($_POST['Submit'])) {
      //Check for numericness
      if (!is_numeric($_POST['score'])) {
             //process form
      }  else {
            //echo error
      }

}
 
Back
Top