I've this line of code. I'm trying to point my link on google for testing.
$content.="<a href='google.com' target=_blank>".$webSites['value']."</a>";
Instead of getting 'google.com' only, I'm getting as given below: (http://192.168.10.126/consumer/google.com).
Add http://
in front of google.com
So your code looks like this:
$content.="<a href='http://google.com' target=_blank>".$webSites['value']."</a>";
Without http://
, your browser thinks that google.com
is an internal link. Adding the http://
protocol lets the browser know you want to link to an external site.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With