JTapp Posted October 8, 2008 Share Posted October 8, 2008 I tried this but it is not working: echo "<td class=\"td_id\"><a href=\"mailto:$variable5\</td>\n"; Link to comment https://forums.phpfreaks.com/topic/127630-solved-if-variable4-is-an-email-address-how-do-i-activiate-it/ Share on other sites More sharing options...
Maq Posted October 8, 2008 Share Posted October 8, 2008 Try something like this: echo "\n"; Link to comment https://forums.phpfreaks.com/topic/127630-solved-if-variable4-is-an-email-address-how-do-i-activiate-it/#findComment-660388 Share on other sites More sharing options...
JTapp Posted October 9, 2008 Author Share Posted October 9, 2008 Thanks but it didn't work... it doesn't return anything ... but the words $variable5 are black instead of red in my code... Link to comment https://forums.phpfreaks.com/topic/127630-solved-if-variable4-is-an-email-address-how-do-i-activiate-it/#findComment-660422 Share on other sites More sharing options...
Maq Posted October 9, 2008 Share Posted October 9, 2008 I know cause I used the code tags and started it with "<?php". Can you echo the $variable5 to make sure there's a value? Link to comment https://forums.phpfreaks.com/topic/127630-solved-if-variable4-is-an-email-address-how-do-i-activiate-it/#findComment-660428 Share on other sites More sharing options...
AndyB Posted October 9, 2008 Share Posted October 9, 2008 In cases like 'not working', it sometimes helps to view the generated HTML code. Try this variant: <?php echo "<td class='td_id'><a href='mailto:". $variable5. "'>". $variable5. "</a></td>\n"; Link to comment https://forums.phpfreaks.com/topic/127630-solved-if-variable4-is-an-email-address-how-do-i-activiate-it/#findComment-660486 Share on other sites More sharing options...
JTapp Posted October 9, 2008 Author Share Posted October 9, 2008 All set. Thanks for all of your help and time. Link to comment https://forums.phpfreaks.com/topic/127630-solved-if-variable4-is-an-email-address-how-do-i-activiate-it/#findComment-660518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.