contiw Posted July 18, 2010 Share Posted July 18, 2010 In php I am loading an html $template->set_filenames(array( 'body' => 'program_m5s_body.html') ); which contains these three lines : <!-- INCLUDE overall_header.html --> <iframe src=",/../pdf/program_m5s.pdf" width="100%" height="100%"> </iframe> <!-- INCLUDE overall_footer.html --> Is it possible to merge the html into the php, to eliminate the html alltogther ? Noob here. Please bear with me and thank you. Link to comment https://forums.phpfreaks.com/topic/208070-loading-an-html-into-a-php-coding-improvement/ Share on other sites More sharing options...
marcus Posted July 18, 2010 Share Posted July 18, 2010 <?php if(SOME_ELABORATE_CODE){ doThis(); } ?> <em>HTML CAN BE PUT HERE FREEELY</em> <?php moreElaborate($phpCode); ?> You can easily close your PHP tags, put some HTML in and then reopen your PHP tags for more code. Link to comment https://forums.phpfreaks.com/topic/208070-loading-an-html-into-a-php-coding-improvement/#findComment-1087637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.