I've been trying to figure out if it's possible at all to put html in the middle of php without breaking the php or using echo or print. Hear me out... this is the situation:
I'm just making an admin section for a web site. I used to work in cold fusion, but we want to move over to php for server reasons. Here is pseudocode of what I used to do in cold fusion.
Code: Select all
if url.mode = section
{
if url.action = add
{
if formwassubmitted
{
handle form here
}
else
{
show form here
}
}
else if url.action = edit
{
etc etc etc
}
}I'm looking for any possible way other than having a different include file for every single section to have html look nice in large amounts of code... I'm guessing there's nothing I can do and I have to live with horrible looking huge chunks of html in string quotes that don't color code in dreamweaver or millions of different include files. If I'm wrong though, I would be pleasantly suprised and appreciative.