Ето това са грешките:
Ето това е кода:
Слагам текста в <p> таг, защото на него съм му задал стил.
# Error Line 38, Column 46: Start tag form seen in table.
<form method="POST" action="log.php" >
✉
# Error Line 38, Column 46: Element form not allowed as child of element table in this context. (Suppressing further errors from this subtree.)
<form method="POST" action="log.php" >
Contexts in which element form may be used:
Where flow content is expected.
Content model for element table:
In this order: optionally a caption element, followed by zero or more colgroup elements, followed optionally by a thead element, followed optionally by a tfoot element, followed by either zero or more tbody elements or one or more tr elements, followed optionally by a tfoot element (but there can only be one tfoot element child in total).
# Error Line 39, Column 15: Start tag p seen in table.
<p>Потребител: </p><br /><input style="width:120px;" type="text" na…
✉
# Error Line 39, Column 15: Cannot recover after last error. Any further errors will be ignored.
<p>Потребител: </p><br /><input style="width:120px;" type="text" na…
Ето това е кода:
PHP:
echo "
<table>
<form method=\"POST\" action=\"log.php\" >
<tr><p>Потребител: </p><br /><input style=\"width:120px;\" type=\"text\" name=\"username\"/></tr>
<tr><p>Парола: </p><br /><input style=\"width:120px;\" type=\"password\" name=\"password\" /></tr>
<tr><input style=\"margin-top: 10px;\" type=\"submit\" value=\"Влез\" name=\"log\" /></tr>
</form>
</table>
";