kadamsurekha Posted March 14, 2007 Share Posted March 14, 2007 hello friends! i hav the code as <? $msg="welcome!u r here".echo "<a href='a.php'>click me!</a>"; echo "$msg"; ?> so i want the output as:- welcome!u r here click me! where "click me!" is the link to a.php page plse can u tell me how it is???????? i am not getting the o/p i want. thx n regards Link to comment https://forums.phpfreaks.com/topic/42641-html-with-php/ Share on other sites More sharing options...
ridiculous Posted March 14, 2007 Share Posted March 14, 2007 Try this. <p>Welcome, you are here. You are my little fairy girl. Foreva. <a href="a.php">Hi Click ME!</a></p> Link to comment https://forums.phpfreaks.com/topic/42641-html-with-php/#findComment-206893 Share on other sites More sharing options...
mjlogan Posted March 14, 2007 Share Posted March 14, 2007 lol or $msg="welcome! u r here <a href=\"a.php\">click me!</a>"; echo $msg; Link to comment https://forums.phpfreaks.com/topic/42641-html-with-php/#findComment-206897 Share on other sites More sharing options...
billskipton Posted March 14, 2007 Share Posted March 14, 2007 or just echo "welcome! u r here <a href='a.php'>click me!</a>"; Link to comment https://forums.phpfreaks.com/topic/42641-html-with-php/#findComment-206900 Share on other sites More sharing options...
kadamsurekha Posted March 14, 2007 Author Share Posted March 14, 2007 thank you friends! ur suggestions have really taken my project ahead. its working thx n regards Link to comment https://forums.phpfreaks.com/topic/42641-html-with-php/#findComment-206903 Share on other sites More sharing options...
Lumio Posted March 14, 2007 Share Posted March 14, 2007 I'm using a single ' for html-tags: <?php echo '<a href="foo.php">bar</a>'; ?> Link to comment https://forums.phpfreaks.com/topic/42641-html-with-php/#findComment-206916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.