View Full Version : Processing form data

02-19-2003, 10:03 AM
Hello, I am using html form to submit my guestbook with fields name, email, comment. Then i used php and tried to retrieve the submitted value as $email and $name, however, i cannot read any input UNLESS I replace it as $HTTP_POST_VARS["name"].
Why is that? can i just use echo ($name); ?

pls help

02-19-2003, 02:34 PM

register_globals boolean
Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables. For example

the link will give you all the info you need. it is a setting that is disabled on your server.

02-19-2003, 06:24 PM
an easy way...

$name = HTTP_POST_VARS["name"];

echo $name;

Saves having to put HTTP_POST_VARS["name"] everytime