weemikey Posted July 7, 2007 Share Posted July 7, 2007 Hi all! Just a quick question about how most folks use php and html. I used an example from a book to recently build a contact manager with php/mysql. The format was php code top to bottom that just built one big variable called $display_block. At the end of each php file was a short html section with the basic required tags and a <?php echo $display_block ?> in between the body tags. Worked like a charm. However, I see lots of examples of html files with php tags littered throughout. Is there a "standard" for how this is done? I'm about to build a site with a web guy and I want the code to be flexible. Any advice? I've been messing around with trying to embed php in an html file but so far it's not working at all.... Thanks, Mike Link to comment https://forums.phpfreaks.com/topic/58804-general-question-on-php-and-html/ Share on other sites More sharing options...
bluebyyou Posted July 7, 2007 Share Posted July 7, 2007 When you embed the php in the html are you naming the file with a .php extension? Link to comment https://forums.phpfreaks.com/topic/58804-general-question-on-php-and-html/#findComment-291772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.