how to output the following html string using echo
or print
of php?
<td width=275><input type="text" name="title" value="<?php echo $row["title"]; ?>"></td>
echo "<td width=275><input type="text" name="title" value="<?php echo $row["title"]; ?>"></td>"
No
echo "<td width=275><input type="text" name="title" value="<?php echo $row["title"]; ?>"></td>"
nor
print <<<EOT
<td width=275><input type="text" name="title" value="<?php echo $row["title"]; ?>"></td>
EOT;
is not allowed either, because this html also contains a php statement.
my real need is
<?php
if(isset($_POST["flag"])
{
print <<<EOT
<td width=275><input type="text" name="title" value="<?php echo $row["title"]; ?>"></td>
EOT;
else
{
}
?>