-
mail() function
Hello!
I'm quite a newbie with PHP and want help with the mail()-function.
I've got a page where you can tip others about this page and that's why I've an hidden variable on the page called $page with the address to this page. My problem is that I can't get this variable into the mail I'm sending. it only prints out $page in the mail and not the URL. Anyone got any ideas?
thx!
-
post your exact code so I can see what exactly you are testing. Its hard to just imagine what you wrote.
-Matt
-
i'd imagine it's a quoting problem since you say it prints $page instead of the contents of $page, try one of these
PHP Code:
$stufftomail = 'hello, this is a url ' . $page . ' I know you like it';
$stufftomail = "hello, this is a url $page I know you like it";
-
chrisjk:
Thx for your suggestion, will try it later when I come home.
-
it works! thank you very much!