|
-
May 26th, 2002, 01:23 PM
#1
Thread Starter
Addicted Member
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!
-
May 26th, 2002, 04:42 PM
#2
Fanatic Member
post your exact code so I can see what exactly you are testing. Its hard to just imagine what you wrote.
-Matt
-
May 26th, 2002, 07:13 PM
#3
PowerPoster
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";
-
May 27th, 2002, 05:24 AM
#4
Thread Starter
Addicted Member
chrisjk:
Thx for your suggestion, will try it later when I come home.
-
May 27th, 2002, 08:00 AM
#5
Thread Starter
Addicted Member
it works! thank you very much!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|