Quote Originally Posted by somik View Post
LOL!

Yes, you can break the php codes with ?> and write HTML, CSS, javascript and whatever you need. Then when you need PHP again, just put it in between PHP tags <?php and ?>

Follow instructions on this site for more info: http://www.tizag.com/phpT/

No wonder why I end up in a mess whenever I see your codes!

It is a good practice to separate the html and the server side activities. Coz the user doesn't need to know what happens when he/she loads a page!

MVC pattern (en.wikipedia.org/wiki/Model?view?controller) was introduced to take care of this in the first place.


P.S: You need not introduce MVC concepts in a small application (or script) but it may help you out in the long run