Jump to content

$_POST all the values in an array


Hatdrawn

Recommended Posts

I have a novice understanding of PHP and I need some help

 

I'm taking over a site that had some forms already built and I need a build a page to verify them. The verification is going to to be as simple as displaying what the user entered and asking if it's right, I won't be doing any error checking.

 

On the initial page there is a hidden input with the name="Fields2Email_auto" and value="MyName,Address..." (all the values of the rest of the fields).

 

So on the second page all I'm trying to do is display these values, as what the user typed in.

 

I put them in an array...

 

$array=explode(',', $Fields2Email_auto);

 

... hoping a I could loop all the values of the array into $_POST.

 

I can't seem to figure it out. I really don't want to manually type in

 

$MyName = $_POST['MyName']

 

for the some 300 fields over the 5 pages.

 

Please help.

 

All I'm trying to do is automate the proces of $MyName = $_POST['MyName']

 

Link to comment
https://forums.phpfreaks.com/topic/161735-_post-all-the-values-in-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.