How do I store variables from a _POST to an array in PHP
Posted on 2011-09-28
I have a bunch of variables that are defined from a _POST from an incoming form. I need to put all the variables that are defined into an array.
I tried -->
$myArray=array($field1, $field2, $field3);
This is only outputting Array on my web browser. I am new to PHP so this is probably something easy to fix I am missing. When I Google the term variables in php array I really don't see any examples that help.