is_numeric and MAC input



Hi,
My MAC users (2 so far, unknown OS versions) complain that my code
always fails here saying
From: les
Subject: Bugs
Message: Hi John, I couldn't get it to work! It didn't seem to
recognize my numbers as numbers. Is this because I am on a Mac (gasp)?
Les

Other users do not have this problem.

Any idea why this function would fail?

First we get the data:

$doag=$_GET['DOAG']; check100($doag, "doag");

Here is the function call. It should check for a valid number, then,
if it isn't valid, find the agency the user submitted and tell them
they need to send a number.


function check100($x, $ag) {
if (!is_numeric($x)){
mysql_connect("localhost","dbname", "passwd");
mysql_select_db("dbname");
$query = "select agency from agency where agency_id = '$ag';";
$result = mysql_query($query) or die("Error, agency query
failed");
while ($row = mysql_fetch_array($result))
{ $ag = $row['agency']; }
$e_code[6]=$e_code[6] + 1;
print "The value in $ag is not a number, please try again.";
}

==============================================================
My server runs

Apache/1.3.37 Ben-SSL/1.57 (Unix) mod_gzip/1.3.26.1a mod_fastcgi/2.4.2
mod_throttle/3.1.2 Chili!Soft-ASP/3.6.2 FrontPage/5.0.2.2635 mod_perl/
1.29 PHP/4.4.6

Operating System
Name: Linux
Vendor: Debian
Version: CustomLinux

PHP Version: 4.4.6

MySQL Version: 5.0.30

.



Relevant Pages

  • Re: Apple makes little girl cry
    ... In article, John ... Windows dominance makes them feel inferior. ... Windows dominance might make Mac users feel attacked, under fire, or ... used to hate PCs when I used an Amiga then I got a free Compaq 286 PC. ...
    (comp.sys.mac.advocacy)
  • Re: Mac Book Pro
    ... John ... 2.16GHz Intel core duo..... ... Are there any Mac users here with any tips - comments - or words of wisdom ... If you do want to run Windows programs then you can get ...
    (uk.people.silversurfers)
  • Re: Publisher 2003 compatibility with Netscape & Firefox
    ... Specifically what John is talking about is read the thread "What do I do to ... my web site for MAC users be able to click on link" By Devra on the 13th. ... Netscape and Firefox ...
    (microsoft.public.publisher.webdesign)
  • Re: Mac Book Pro
    ... John wrote: ... I never tried a Mac before and thought about trying a Macbook pro - 2.16GHz Intel core duo..... ... Are there any Mac users here with any tips - comments - or words of wisdom? ...
    (uk.people.silversurfers)