1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

PHP with HTML

Thursday September 13, 2007
Did you know that you can interchange between PHP and HTML in the same document? As long as the PHP is contained within <?php and ?> tags, you can have HTML anywhere else. Or, if you prefer, you can echo HTML right inside PHP! This let's you add HTML style to PHP functionality.
Comments
August 5, 2008 at 2:40 pm
(1) arturo says:

Yes, but is not the best thing to do. The best approach I have found so far is to use the MVC model or put simple: serach for smarty or any other templates such that you keep always separate logic from view. Cheers

August 30, 2008 at 4:31 pm
(2) fornetti says:

I do not believe this

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.