[PHP] HTTP_POST_VARS variable names?
Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS variable names?
Hi, this will list all your posted variables with name and the posted value. while (list($key, $value)=each($HTTP_POST_VARS) ) { echo "$key = $value br"; } Johannes ""Mat Marlow"" [EMAIL PROTECTED] schrieb im Newsbeitrag 9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL PROTECTED]... Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS variable names?
Mat Marlow wrote: Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Correct me if I misunderstand you're question, but; If you use HTTP_POST_VARS you already have the variable names. I mean... how else do you use the values you're talking about? $HTTP_POST_VARS{"var_1"}, $HTTP_POST_VARS{"var_2"}, etc. var_1 and var_2 are the variable names... -- * RzE: *** ** Renze Munnik ** ** E: [EMAIL PROTECTED] ** M: +31 6 218 111 43 *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS variable names?
Quick answer: HTTP_POST_VARS is an associative array. The "name" of the submitted variables are the keys, and the value of the element is the value that was submitted. -- Plutarck Should be working on something... ...but forgot what it was. ""Mat Marlow"" [EMAIL PROTECTED] wrote in message 9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL PROTECTED]... Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]