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"; Quote 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"; Quote 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... Quote 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? Quote 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"; Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.