JTapp Posted October 8, 2008 Share Posted October 8, 2008 All of a sudden I'm getting the following characters after somebody clicks on my email links: </td><td class= for example - they would click on the email link, it would open up a new email message and look like this: name@msn.com</td><td class= Do you guys know how I can fix this? Here is my line of code: $variable12=$row["Email"]; Quote Link to comment Share on other sites More sharing options...
refiking Posted October 8, 2008 Share Posted October 8, 2008 Can you post the table where this is being displayed? It probably doesn't have anything to do with this line. Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 Here is a table with an example: http://www.glflamason.org/lodgelocator/3view.php?id=13 Thanks Quote Link to comment Share on other sites More sharing options...
refiking Posted October 8, 2008 Share Posted October 8, 2008 You need to move the </a> before </td>. If you can post the code here, I can be much more specific, but that is the problem most likely. And if you don't have it there at all, you need to insert </a> before </td><td class= Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 Here is the line: echo "<td class=\"td_id\"><a href=\"mailto:$variable5\</td>\n"; I'll play around with what you said.. although I'm not 100% clear. Thanks Quote Link to comment Share on other sites More sharing options...
refiking Posted October 8, 2008 Share Posted October 8, 2008 Yep. Change it to this... echo "<td class=\"td_id\"><a href=\"mailto:$variable5\</a></td>\n"; Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 Still having the problem... playing around though.. Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 Geez.. I just can't remember doing this.. I did it last year sometime. Here is more code I'm using .. its just giving me trouble echo "<td class=\"td_id\">$variable4</td>\n"; echo "<td class=\"td_id\"><a href=\"mailto:$variable5\</td>\n"; echo "<td class=\"td_id\">$variable5</td>\n"; Quote Link to comment Share on other sites More sharing options...
Stryves Posted October 8, 2008 Share Posted October 8, 2008 echo "<td class=\"td_id\"><a href=\"mailto:$variable5\"></a></td>\n"; Why is there no "> to the end of the a href? Try the above. Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 Thanks but no.. it just made the hyperlink disappear. Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 This is as close as I can get to making it worK: echo "<td class=\"td_id\">$variable4</td>\n"; echo "<td class=\"td_id\"><a href=\"mailto:$variable5>\n"; echo "<td class=\"td_id\">$variable5</td>\n"; Quote Link to comment Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 Here's my latest - anybody have any ideas as to what is wrong?? echo "<td class=\"td_id\"><a href=\"mailto:$variable5\"</td>\n"; 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.