Url variables

Hi. I am working with url variables. I do this code

$sender = urlencode($_SESSION['sender']);
$body = "www.animatemycard.com/Anniversary/anniversarySendCard.php?sender=$sender";

And then send it to someones email address. When they receive the email, they get something like
www. … .php?sender=john

Which should be correct, as I typed john into the input field. Problem is, when they click on the link, the server cannot find this url. This is because the url I have saved is on my server looks like
www. … .php

Am I doing something wrong here, I didnt think this would effect my url?


Have you tried putting an “http://” in front of your link in $body?