krappleby025
Programmer
Hey all, im a newbie here, only been programming for a couple of weeks, i have a small prob i hope its easy to solve.
I have a database record, which is pulled, to create an email.. it has variables in the database record... ie
record could be
hello $firstname, $lastname
ok
i am calling the record, and trying to mail the record to someone.. with the variables set on the page. ie
$firstname = "keith"
$lastname = "appleby"
mail ("$databaserecord" etc)
however when i recieve the mail it comes exactly as is in the database, ie
hello $firstname, $lastname
the variables are not filled in ... I have also tried enclosing them in [ and ] but still no luck, any ideas
thanks
I have a database record, which is pulled, to create an email.. it has variables in the database record... ie
record could be
hello $firstname, $lastname
ok
i am calling the record, and trying to mail the record to someone.. with the variables set on the page. ie
$firstname = "keith"
$lastname = "appleby"
mail ("$databaserecord" etc)
however when i recieve the mail it comes exactly as is in the database, ie
hello $firstname, $lastname
the variables are not filled in ... I have also tried enclosing them in [ and ] but still no luck, any ideas
thanks