...

View Full Version : Processing form data



kenny873
02-19-2003, 09: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

thox
02-19-2003, 01:34 PM
http://uk.php.net/manual/en/configuration.directives.php#ini.register-globals



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.

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



$name = HTTP_POST_VARS["name"];

echo $name;


Saves having to put HTTP_POST_VARS["name"] everytime



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum