[FX.php List] Re-populating $_POST form data
Jonathan Schwartz
jschwartz at exit445.com
Fri Oct 24 08:54:25 MDT 2008
Hi folks,
Am switching my way of working with form data. Where I have been
using $_SESSION to display form values, I am reverting back to using
$_POST.
<...value="<?php echo $_POST['fieldname'];?>" ...>
This a big form with a lot of fields. I am also attempting to NOT
have to discretely parse out every field individually. I'd rather use
a loop.
So, how do you parse the FMP foreach statement to re-populate $_POST
valuse, so they can be re-displayed in a form. This is my latest
attempt...but it doesn't work.
foreach($findResult['data'] as $key => $value)
{
$_POST[$key] = $value[$key][0];
}
Thanks
Jonathan
--
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-370-5011
More information about the FX.php_List
mailing list