Re: [PHP] Creating Dynamic Variables

2002-07-17 Thread Michael Sims
On Wed, 17 Jul 2002 22:39:10 -0400, you wrote: >Hello, I have captured variables from any HTML that is POSTed to me from a >'foreach' clause. Now, possibly in this foreach clause I want to register >these name/value pairs into a session var. I have tried : >session_start(); >foreach ($HTTP_POST_V

Re: [PHP] Creating Dynamic Variables

2002-07-17 Thread Pushkar Pradhan
Try putting "" around name in session_register? > Hello, I have captured variables from any HTML that is POSTed to me from a > 'foreach' clause. Now, possibly in this foreach clause I want to register > these name/value pairs into a session var. I have tried : > session_start(); > foreach ($HTTP_P

RE: [PHP] Creating Dynamic Variables

2002-07-17 Thread Martin Towell
I think you're more after this session_start(); foreach ($HTTP_POST_VARS as $name=>$value) { $$name=$value; session_register($name); //with the $ } HTH Martin -Original Message- From: Anup [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:39 PM To: [EMAIL PROTECTED] Subject: [