At 01:01 24.02.2003, Robert E. Harvey, M.D. said:
--------------------[snip]--------------------
> if (is_numeric($_POST["gamt_$i"]) or empty($_POST"gamt_$i"))
>
>or this:
>
> if (is_numeric($_POST["gamt_$i"]) || empty($_POST"gamt_$i"))
>
>I get this error message (my if statement is on line 5):
>
>*Parse error*: parse error, unexpected '\"', expecting ')' in 
>*/var/www/html/calc/pad_test.php* on line *5
>*
>Now, where did that come from?
--------------------[snip]-------------------- 

try to always use square brackets when accessing an array element, like

if (is_numeric($_POST["gamt_$i"]) or empty($_POST["gamt_$i"]))
or this:
if (is_numeric($_POST["gamt_$i"]) || empty($_POST["gamt_$i"]))


-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to