Re: [PHP] Lost Variables

2004-11-23 Thread Jason Wong
On Wednesday 24 November 2004 04:52, Monique Verrier wrote: > I am using the general strategy suggested by Jay (thanks, Jay) to process > my form in another procedure. It's listed below. In my processStuff.php > program, I use the following code: > > $attributes = array(); > $attributes = array_

Re: [PHP] Lost Variables

2004-11-23 Thread Monique Verrier
Thank you, Alberto. Do you know -- does the extract() function not work? Monique. "Abrea" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To turn $_POST["var1"], $_POST["var2"], $_POST["var3"] into $var1, $var2, > $var3: > > if(isset($_POST)) > { foreach($_POST as $key=>$value) >

Re: [PHP] Lost Variables

2004-11-23 Thread abrea
To turn $_POST["var1"], $_POST["var2"], $_POST["var3"] into $var1, $var2, $var3: if(isset($_POST)) { foreach($_POST as $key=>$value) { $$key= $value; print("$$key= $value; "); }} This should do it. The print statement is just to check the result. Regards Alberto Brea -Original Message--