Help getting variables to work

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

Tue Feb 11, 2003 4:29 am

recent versions of php have defaulted to register_globals = off in the php.ini
this means you should address URL passed variables from the global $_GET array


echo 'Welcome to my website, '. $_GET['name'] .'!<br />';

unfortunately old books can never quite teach a language that is growing every day - am sure you'll get the hang of things tho.,
avatar image based upon nasas apod (only updates if I post though)

Post Reply