[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
I'll try again... my explanation of my exact problem was not too good last time :P I am working with the following code: $text = "##firstname##"; $text = ereg_replace("##([^#]+)##", $row["\\1"], $text); $row[] is a result of using mysql_fetch_array. I would expect it to replace

Re: [PHP] dynamic variable names?

2001-07-31 Thread Matt Kaufman
Nevermind, I forgot about variable variables. Matt Kaufman - Original Message - From: "Matt Kaufman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 10:43 PM Subject: Re: [PHP] dynamic variable names? > I don't know if this is wha

Re: [PHP] dynamic variable names?

2001-07-31 Thread Matt Kaufman
" <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 7:58 PM Subject: [PHP] dynamic variable names? > Is it possible to dynamically assign a variable name? > > For example: > variable name is $var_."name" > or $var_."$name" > > Regards, > > Matthe

RE: [PHP] dynamic variable names?

2001-07-31 Thread Matthew Loff
bject: [PHP] dynamic variable names? Is it possible to dynamically assign a variable name? For example: variable name is $var_."name" or $var_."$name" Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
Is it possible to dynamically assign a variable name? For example: variable name is $var_."name" or $var_."$name" Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] Dynamic variable names

2001-07-23 Thread Chris Fry
Casey, You need to loop around on the next page to find the variables - they are all in HTTP_POST_VARS:- while (list($key, $val) = each($HTTP_POST_VARS)) { print "Key = ".$key." Value = ".$val.""; } Chris [EMAIL PROTECTED] wrote: > Hi, > > I'm trying to access variables coming in through

[PHP] Dynamic variable names

2001-07-23 Thread bessettecm03
Hi, I'm trying to access variables coming in through a form. I have assigned them dynamic names on the form page (e.g., $username, where username can change). Now how can I access these variables on the next page? I tried: $($people["username"]) where username is a field and people is a