[FX.php List] Re-populating $_POST form data
Andy Gaunt
andy at fmpug.com
Fri Oct 24 10:06:43 MDT 2008
just a quickie, but have you tried
foreach($findResult['data'] as $key => $value)
{
$$_POST[$key] = $value[$key][0];
}
Cheers
Andy Gaunt
T: 321-206-3658
andy at fmpug.com
http://www.fmpug.com
FMPug.com: A Developer's best Friend!
FindFileMakerDevelopers.com -
The #1 listings engine for FileMaker Professionals
On Oct 24, 2008, at 10:54 AM, Jonathan Schwartz wrote:
> 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
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list