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! 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 ?> 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 } ?> 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 .. 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 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
Archived
This topic is now archived and is closed to further replies.