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 peopl

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 allowe

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 variati

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 ge

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 = " > href=\"http://$HTTP_HOST$SCRIPT_NAME\";>http://$HTTP_HOST$SC

Re: [PHP] Variable Inside Variable

2002-04-18 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 = " href=\"http://$HTTP_HOST$SCRIPT_NAME\";>http://$HTTP_HOST$SCRIPT_NAME"; >