Re: Forms
| From: | Focus Design Group - Jason Bryner | Date: | Thu, 13 Jul 2000 04:15:22 +0000 |
| Subject: | Re: Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6378@lists.php.net to get a copy of this message | ||
You could use something like this:
$i = 0;
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$TempValArray[$i] = $val;
$TempKeyArray[$i] = $key;
$i++;
}
$SizeOfArray = count($TempValArray);
for ($j=0; $j< $SizeOfArray; $j++) {
$String = $String . $TempKeyArray[$j] . "=" . $TempValArray[$j] ";
if ($j !=0) {
$String = "&" . $String;
}
}
I havn't tested this, but I believe it'll work.
Jason Bryner
jason@focusdesigngroup.com
--
Focus Design
http://www.focusdesigngroup.com
> I have a form procesesd with a submit button, now is there a PHP variable
> which equals the entire form line? For example, after the submit button
has
> been pressed, the URL is something like this:
>
> webpage.php3?submit=yes&variable1=this&variable2=that
>
> I want to then be able to put "submit=yes&variable1=this&variable2=that"
> into a string variable. Is there a PHP variable which equals this?
>
> Thanks
>
> Tom Peck
>
>
> --
> 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
>