xWastedMindx
Technical User
Hello again.
I'm trying to Validate my PHP page to the XHTML 1.0 standards according to
Problem is, the Validator seems to be stuck on 2 things..
It throws errors at the following:
Problem is... the first chunk is the table output from my PHP code. How can I hide the PHP from the validator?
The second chunk, is just a form I have... and for some odd reason, the XHTML validator doesn't like it.
Don't <form> tags go outside the <table> tags?
If there's any errors I'm overlooking, please have at it.. because I'm seriously confused as to why it's not validating.
I'm trying to Validate my PHP page to the XHTML 1.0 standards according to
Problem is, the Validator seems to be stuck on 2 things..
It throws errors at the following:
Code:
Line 71, column 76: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
...llpadding='5' cellspacing='0' width='275'>^
Line 73, column 56: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag
<form action="dvdpost.php" method="post" name="form_dvd">^
Problem is... the first chunk is the table output from my PHP code. How can I hide the PHP from the validator?
The second chunk, is just a form I have... and for some odd reason, the XHTML validator doesn't like it.
Don't <form> tags go outside the <table> tags?
If there's any errors I'm overlooking, please have at it.. because I'm seriously confused as to why it's not validating.
Code:
<form action="dvdpost.php" method="post" name="form_dvd">
<table align="center" border="1" cellpadding="2" cellspacing="4">
<tr>
<td align="left">
<b>DVD Name</b>:<br />
</td>
<td align="left">
<input type="text" name="dvdName" id="dvdName" maxlength="35" size="15" />
</td>
</tr>
<tr>
<td>
<b>DVD Price</b>:
</td>
<td>
<input type="text" name="dvdPrice" id="dvdPrice" maxlength="5" size="15" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</td>
</tr>
</table>
</form>