Jump to content

Postcard with dead link


Reo
Go to solution Solved by Ch0cu3r,

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
Share on other sites

  • Solution

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";
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.