Numeric text value

General discussions related to php

Moderators: macek, egami, gesf

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

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: No registered users and 1 guest