Help getting variables to work

A

Anonymous

Guest
change
<?php
echo( "welcome to my website, $name!" );
?>

to

<?php
echo( "welcome to my website, ".$_REQUEST["name"]."" );
?>


its register_globals problem you have, you need to turn it on. Go into your windows dir and open up php.ini and fin the line
register_globals = Off

and make it read

register_globals = On

and save it.
Its more of a challenge to leave it off, forces you to do the right things or you get errors
 
TheIceman5 said:
Its more of a challenge to leave it off, forces you to do the right things or you get errors

and not only that, it's also a big security risk if you leave it on :D
 
Back
Top