foreach($_POST as $name=>$value) $$name = $value;
On Wed, 3 Apr 2002, Matt Babineau wrote:
> I have been playing with the $_POST variable
>
> how would I go about looping over the $_POST variable to retrieve the
> variable and values?
>
> I can do this:
>
> <%
>
> if (count($_POST) > 0) {
> /*s
I have been playing with the $_POST variable
how would I go about looping over the $_POST variable to retrieve the
variable and values?
I can do this:
<%
if (count($_POST) > 0) {
/*send mail */%>send out mail<%
$var1 = array_keys ($_POST);
$var2 = array_values ($_POST);
print_r ($var1)