Help getting variables to work

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Post by pootergeist » 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.,

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests