Jump to content

e-mail link called from database is appending url info - why?


scotch33

Recommended Posts

In this code - 

<td class="detailanswer"><a href=<? echo "'".$row['cust_email']."'"; ?>><? echo $row['cust_email']; ?></a></td>

the address [email protected] shows in the display but the actual link becomes
http://mydomain.co.uk/[email protected]

any ideas why the domain url is getting added before the e-mail link?
Firstly I have to ask why your code is the way it is?

Whats the [/url] bbcode doing in there for a start?

Are you sure that the data within cust_email is correct?

Also why are you not including the mailto: part of the HTML?
[code=php:0]
<td class="detailanswer">
<a href="mailto:<? echo {$row['cust_email']}; ?> ><? echo {$row['cust_email']}; ?></a>
</td>
[/code]

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.