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
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
" <[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
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
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
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
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
7 matches
Mail list logo