Click to See Complete Forum and Search --> : reserved names in php?


tobyw_1969
08-31-2003, 08:19 PM
Are there certain names you can't give to variables in PHP? Otherwise I can't explain why this happens...


this script works fine


<?php


$message = $_REQUEST["message"];
echo $message;

?>


but this one just shows a blank page, and doesn't write anything to the screen at all.

<?php


$drawvals = $_REQUEST["mydata"];
echo $drawvals ;

?>

Am I missing some really obvious mistake in the second code? The only other explanation I can think of is that some words are reserved - if I use 'thedata' or 'alldata' it also doesn't work...but if I use other words then it is fine.

Anyone know?

pyro
09-01-2003, 09:52 PM
Are you sure this has been set? $_REQUEST["mydata"]