Numeric text value

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
Joel
New php-forum User
New php-forum User
Posts: 193
Joined: Sat Mar 29, 2003 11:57 pm
Location: Auckland, New Zealand
Contact:

Post by Joel » Wed Sep 17, 2003 2:46 pm

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

Code: Select all

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

}


Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 6 guests