Re: HTTP_POST_VARS truncated

From: Date: Fri, 30 Nov 2001 10:15:36 +0000
Subject: Re: HTTP_POST_VARS truncated
Groups: php.general 
Request: Send a blank email to php-general+get-76172@lists.php.net to get a copy of this message
> reset($HTTP_POST_VARS); > > at the begining of the code. if that doesn't work verify your html again. > make sure the <select>'s are between the form tag. php doesn't ignore > certain form fields. =) > > i'm the habit of reading arrays like... > while(list($k,$v) = each($HTTP_POST_VARS)) { > echo "key is $k - val is $v \n"; Thanks Jason I'll try it tonight, I'm not at my desk now. However, I would like to highlight that: 1) the select tags *are* inside the forms ones. I know php accepts all form fields, that's why I'm so puzzled... 2) I know that the code I posted here is wrong. In fact I said "something like..."; The code I put in the real PHP page however is correct, identical to what you write above, copied straight from a manual: the proof is that otherwise it would not have printed the other form fields as reported, right? Again, I'll try the reset instructino tonight and report. In the meantime any other hypothesis is welcome Thanks, mweb

« previous php.general (#76172) next »