PHP AND HTML.....WHAT IS WRONG WITH THIS?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
brewmiser
Forum Commoner
Posts: 74
Joined: Mon Aug 18, 2003 12:50 pm
Location: Dallas, TEXAS

PHP AND HTML.....WHAT IS WRONG WITH THIS?

Post by brewmiser »

(This might not be the right place for this thread......)

CAN SOMEONE PLEASE TELL ME WHY IT IS SO WRONG TO MIX PHP AND HTML!?

I have read, and been told, not to code PHP this way, but it works for me, and it is the only way I know how to do it. Never had a problem doing this way.

Is this wrong, and if it is, then why is it wrong?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

It isn't wrong, i could pretty much in this way.

Some people like to keep the two separate, there isn't really a right and wrong way. If it works for you, stick to it.

The advantage of splitting the two come when you are working as part of a team, where the designer takes care of the HTML and look of the site, without having to see any PHP code, and the developer is safe in the knowledge his code isn't going to get messed up.

Mark
Post Reply