$_post

Hi ,

i have a form action that has three input field , what i would like to do is i want to put all the values of the POST array in other array, my code is

#

how can i gather all those values of the POST array in one new array?

this is what i am doing
php
$test=array($_POST)
echo $test[‘id’];

but it returns undefined variables. help please

You are making two mistakes :o

  1. You haven’t used quotation marks in your tag and;
  2. You are creating a multi-dimensional array in the PHP; change your code to the following.
<form action="send.php" method="POST">

and
[php]$test = $_POST;[/php]

thanks a lot , you are awesome!!

Sponsor our Newsletter | Privacy Policy | Terms of Service