scotch33 Posted November 8, 2006 Share Posted November 8, 2006 In this code - <td class="detailanswer"><a href=<? echo "'".$row['cust_email']."'"; ?>><? echo $row['cust_email']; ?></a></td>the address user@userdomain.com shows in the display but the actual link becomes http://mydomain.co.uk/user@userdomain.comany ideas why the domain url is getting added before the e-mail link? Quote Link to comment Share on other sites More sharing options...
Cep Posted November 8, 2006 Share Posted November 8, 2006 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] Quote Link to comment Share on other sites More sharing options...
php_joe Posted November 8, 2006 Share Posted November 8, 2006 Don't forget both double quotes:[code]<td class="detailanswer"><a href="mailto:<? echo {$row['cust_email']}; ?>" ><? echo {$row['cust_email']}; ?></a></td>[/code] Quote Link to comment Share on other sites More sharing options...
moore82 Posted November 8, 2006 Share Posted November 8, 2006 joe's got it. Quote Link to comment Share on other sites More sharing options...
Cep Posted November 9, 2006 Share Posted November 9, 2006 LOL yes always be on the lookout for typos ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.