> -----Original Message----- > From: Alexey Lysenkov [mailto:[EMAIL PROTECTED]] > Sent: 18 December 2002 19:08 > > > I am trying to do this: > > $tempVar1 = '\$HTTP_POST_VARS[\"q4_'.$i.'"]'; > eval("\$tempVar1=\"$tempVar1\";"); >
Well, you have the answer right there in front of you -- why not just take the statement you build and eval(), and write it directly in the PHP thus: $tempVar1 = $HTTP_POST_VARS['q4_'.$i]; or $tempVar1 = $HTTP_POST_VARS["q4_$i"]; Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php