Verify Email Link in Email Not Clickable

Working through a ‘register/login with verify’ script to make it work for my setup, and it does! Unfortunately, the email asking me to verify my form details doesn’t have a clickable link, just a url that I can copy/paste and get into the page.

The original line of code from the script reads:

$url = ‘http://’.$_SERVER[‘SERVER_NAME’].’/property7/register/verify.php?id=’.$lastId.’&token=’.$token;

And, following some instructions from another source, I change it to:

$url = ‘http://’.$_SERVER[‘SERVER_NAME’].’/property7/register/verify.php?id=’.$lastId.’&token=’.$token;
$url_components = parse_url($url);
parse_str($url_components[‘query’], $params);

But it gave the same result, image attached.

Can someone inform me as to what to do to get the link in the email to appear in link form so I can maybe turn it into a button?!

email|690x174

Well, not really sure what you want, but, when you send a URL in an email, you have to turn it into an ANCHOR. Meaning a “link”. A URL placed into an email is just text. You need to wrap it inside of a link.
< a href=‘your url’>some text < /a> If you have code that displays the $url variable on the page and it is
the only thing you need to change, then just add the ANCHOR code inside the $url variable.
Hope you understand that…

The url contains a unique token that’s generated during the registration process, making the whole url a bit different. If enclosed in tags, the whole page is rendered just white. Funnily enough, all is well if a gmail address is specified during registration. Turns out that yahoo strip the ‘clickability’ from urls in their emails. Just noticed the same with Hotmail. I haven’t registered for anything in years but I’m going to set up hotmail and yahoo dummy accounts and see if sites like Amazon and ebay have their urls rendered to text only.

You need to add quotes around your token if it is not just normal numbers. Assuming it includes text like letters, you need to add double-quotes around it. Notice that last bit is single-quote, double-quote, another single-quote. You need quotes around the token…

I’ve tried:
$url = ‘https://[ip address]’.$_SERVER[‘SERVER_NAME’].’/property7/register/verify.php?id=’.$lastId.’&token="’.$token.’"’;

And the whole page is just goes white!

Well, do you know how to debug? First, you can force it to display the URL by just using the DIE() function.
Right after $url=… Just add another line: die(“this is the url:< br>”.$url); or something similar. It will cause
the code to end and show you what you are getting for the actual URL…

ANother thing you can do is to RIGHT-CLICK on the “white page” and see if it is really white or not. Quite often you can see code that was sent to the browser that is not displayable.

Sponsor our Newsletter | Privacy Policy | Terms of Service