Url variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nick2price
Forum Newbie
Posts: 18
Joined: Fri Nov 13, 2009 5:49 pm

Url variables

Post by nick2price »

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

Code: Select all

$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.nyUrl.com/tester/tester.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.nyUrl.com/tester/tester.php

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

cheers
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Url variables

Post by andyhoneycutt »

when you say:
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
What are you meaning by 'the url you have saved on your server'...
Post Reply