Jump to content

Archived

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

homchz

PHP Alone or Mixed with HTML?

Recommended Posts

I have just started messing around with PHP/MySQL though I have been working with Dreamweaver for some time.

 

Is there a preference to builing a page in HTML and inserting the PHP code where needed or shoudl s page be entirely built with PHP?

 

Though I guess as long as it works who is to say one is better than the other, but is one less prone to problems.

 

I am not a hand coder I am a hack and just ask questions, push buttons and read books till I get it. All the books i have been reading on PHP tall you how to code a complete sight but none say much about mixing PHP and HTML too much.

 

I will build a page in DW and even thoug it is saved as a PHP file there is more HTML on the page than PHP.

 

Just looking for some thoughts.

 

Josh

Share this post


Link to post
Share on other sites

Enter: Smarty

 

A templating engine like this should solve your problems of integrated PHP within your HTML pages. Great time to be introduced :)

Share this post


Link to post
Share on other sites

×

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.