RE: [PHP] Problem with forms

From: Date: Mon, 31 Jul 2000 19:19:46 +0000
Subject: RE: [PHP] Problem with forms
Groups: php.general 
Request: Send a blank email to php-general+get-9247@lists.php.net to get a copy of this message
Make sure that you have register_globals = On in php.ini if you want to access the vars like that. You can also access the vars like the following if you have track_vars = On in php.ini: $cgi = getenv("REQUEST_METHOD") == 'GET' ? $GLOBALS[HTTP_GET_VARS] : $GLOBALS[HTTP_POST_VARS]; echo "The headline is " . $cgi['headline']; --Bruce Bruce Christensen Intel Corporation brucex.r.christensen@intel.com -----Original Message----- From: Robert Ryan [mailto:robert@union.no] Sent: Monday, July 31, 2000 12:00 PM To: php-general@lists.php.net Subject: [PHP] Problem with forms Hi there, i come from a background in ASP, and have now moved over to PHP as well. I understand that queries are handled like regular variables in PHP. My problem now is that i cant make use of form-elements after they have been submitted. I use "POST", but it seems that the elements from the form is not available. If a form element is named for example "headline", i should be able to accsess this by using the variable "$headline" right? In ASP you use request("headline"). Is this a configuration setting or something? Please help Robert Ryan Union Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#9247) next »