Jump to content

General question on php and html


weemikey

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.