(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?
PHP AND HTML.....WHAT IS WRONG WITH THIS?
Moderator: General Moderators
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
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