Jump to content

Postcard with dead link


Reo

Recommended Posts

Hi, I have installed a postcard service that is called freeze greetings. It is all up an running but the problem is that the e-mails sent out do not contain a proper link back, so therefor it is not possible to view the postcard. The adress to the postcard is partly missing. You can try it out for yourself at this adress: http://moonrock.net76.net/greetings

Link to comment
https://forums.phpfreaks.com/topic/284053-postcard-with-dead-link/
Share on other sites

Your sites url is not being added t to the email this is the url I get in the email

http://?action=view&id=1384869148

 

This is due to this line

$link="http://${HTTP_HOST}${PHP_SELF}?action=view&id=$today";

This will only work if a setting called register_globals is enabled.

 

Try and change it to

$link="http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?action=view&id=$today";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.