rotarypot Posted June 2, 2007 Share Posted June 2, 2007 how do i go about doing that.. i am familiar with the basics of echoing, but i suppose there is a way to not use echo, so as to avoid escaping characters and such .. Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/53953-solved-mixing-html-and-php-without-using-echo/ Share on other sites More sharing options...
marcus Posted June 2, 2007 Share Posted June 2, 2007 You could just end the PHP and then insert your HTML... etc.. <?php //php stuff ?> <!-- HTML STUFF --> <?php //more php stuff ?> Quote Link to comment https://forums.phpfreaks.com/topic/53953-solved-mixing-html-and-php-without-using-echo/#findComment-266736 Share on other sites More sharing options...
ryeman98 Posted June 2, 2007 Share Posted June 2, 2007 You could just end the PHP and then insert your HTML... etc.. <?php //php stuff ?> <!-- HTML STUFF --> <?php //more php stuff ?> And, if you have an if statement you could do this: <?php if (condition) { ?> <!-- HTML Stuff --> <?php } ?> Quote Link to comment https://forums.phpfreaks.com/topic/53953-solved-mixing-html-and-php-without-using-echo/#findComment-266741 Share on other sites More sharing options...
rotarypot Posted June 2, 2007 Author Share Posted June 2, 2007 And, if you have an if statement you could do this: <?php if (condition) { ?> <!-- HTML Stuff --> <?php } ?> YES! Exactly what i was looking for !!! Thanks so much .. Quote Link to comment https://forums.phpfreaks.com/topic/53953-solved-mixing-html-and-php-without-using-echo/#findComment-266748 Share on other sites More sharing options...
ryeman98 Posted June 2, 2007 Share Posted June 2, 2007 Lol. No problem! Good luck! Rye Quote Link to comment https://forums.phpfreaks.com/topic/53953-solved-mixing-html-and-php-without-using-echo/#findComment-266749 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.