Hi all,
Ive searched on the internet for this very simple thing.
What are the rules for embeding HTML inside a PHP tag?
Like the below:
<?php
if($cboAWQ == "1")
{
echo "<tr>
<td width=\"200\" valign=\"top\" bgcolor=\"">AwqListing</td>
<td bgcolor=\""><textarea cols=\"45\" rows=\"10\" name=\"txtAwq\"></textarea></td>
</tr>";
}
?>
What am I doing wrong in the above?
And also, just in general, what are the rules for embedding html in php just for future reference?
Also, is it considered more clean to put the html code in a php variable?