Re: [PHP] Variable in variable.

2010-08-26 Thread Robert Cummings
On 10-08-26 09:54 AM, João Cândido de Souza Neto wrote: I know that in PHP I can use this: $var1 = text; $var2 = '$var1'; 4cho $$var2; So it gives me text. It would if you didn't have typos and the wrong quotes in the above :) My question is, is there a way of doing it with constant like

Re: [PHP] Variable in variable.

2010-08-26 Thread Jo�o C�ndido de Souza Neto
Really cool... Thanks and fogive me by my mistake. hehe -- João Cândido de Souza Neto Robert Cummings rob...@interjinn.com escreveu na mensagem news:4c76743a.2060...@interjinn.com... On 10-08-26 09:54 AM, João Cândido de Souza Neto wrote: I know that in PHP I can use this: $var1 = text;

RE: [PHP] Variable Inside Variable

2002-04-20 Thread Jeff Oien
On Fri, 19 Apr 2002, Jeff Oien wrote: Far better would be to put a placeholder in $body like and then just do $body = ereg_replace('', $url, $body); That's giving me a blank also. The form for changing the email is in a password protected area where only two people are allowed. But

Re: [PHP] Variable Inside Variable

2002-04-19 Thread Jason Wong
On Friday 19 April 2002 09:31, Jeff Oien wrote: I have a script which retrieves the body of an email message from a MySQL database to be sent to someone who applies using a form. The script contains this: $url = a href=\http://$HTTP_HOST$SCRIPT_NAME\;http://$HTTP_HOST$SCRIPT_NAME/a; $url =

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Jeff Oien
On Friday 19 April 2002 09:31, Jeff Oien wrote: I have a script which retrieves the body of an email message from a MySQL database to be sent to someone who applies using a form. The script contains this: $url = a href=\http://$HTTP_HOST$SCRIPT_NAME\;http://$HTTP_HOST$SCRIPT_NAME/a;

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Jeff Oien wrote: Use eval(). I have $url (literally) embedded in some text in the database that is to be sent as an email message. I'm using this and $url disappears with a blank spot in the text: eval(\$body = \$body\;); I've tried variations and can't get it to

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Jeff Oien
On Fri, 19 Apr 2002, Jeff Oien wrote: Use eval(). I have $url (literally) embedded in some text in the database that is to be sent as an email message. I'm using this and $url disappears with a blank spot in the text: eval(\$body = \$body\;); I've tried variations and can't get

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Jeff Oien wrote: Far better would be to put a placeholder in $body like and then just do $body = ereg_replace('', $url, $body); That's giving me a blank also. The form for changing the email is in a password protected area where only two people are allowed. But I'll

[PHP] Variable Inside Variable

2002-04-18 Thread Jeff Oien
I have a script which retrieves the body of an email message from a MySQL database to be sent to someone who applies using a form. The script contains this: $url = a href=\http://$HTTP_HOST$SCRIPT_NAME\;http://$HTTP_HOST$SCRIPT_NAME/a; $url = addslashes($url); $msg1 .= $body; //to be sent via