Hey guys, just wondering how you guys go about writing HTML inside a PHP document? I've been doing it all inside Prints, which means I have to escape the talking marks, so although its probably easier to work with, I find it less readable, and just generally impossible to get it all indented properly for when I view the source in a browser.
What method do you guys use?PHP Code:print "<div id=\"loginwrapper\">\n";
print " <div id=\"CreateLoginDiv\">\n";
print " <div id=\"CreateLoginDivTitle\">Please Login:</div>\n";
print " <div id=\"CreateLoginDivContent\">\n";
if($bError) print "<center><div class=\"ErrorBox\"><h4>Error</h4>Invalid Username or Password. Please try again.</div></center>";
print " <form method=\"POST\" action=\"./login.php\">\n
<label>Username<input type=\"text\" name=\"username\" ";




Reply With Quote