At 01:01 24.02.2003, Robert E. Harvey, M.D. said:That did it! Thank you, Professor!
--------------------[snip]--------------------
if (is_numeric($_POST["gamt_$i"]) or empty($_POST"gamt_$i"))--------------------[snip]--------------------
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?
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"]))
Bob Harvey
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php