View Single Post
Old 01-29-2003, 04:32 PM   PM User | #1
MrDoubtFire
New Coder

 
Join Date: Dec 2002
Location: Florida
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
MrDoubtFire is an unknown quantity at this point
XHTML Validation

I was validating a couple of pages (xhtml 1.1) and it told me that the <input> tag needed to be in another tag, it was illegal as it was (the code is below).


<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="xxxx@hotmail.com" />
<input type="hidden" name="display" value="1" />
</fieldset>
</form>


Now, the validator told me this:

Line 316, column 53: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag



I suppose my question is this: would a simple <fieldset> tag around all hidden fields fix this? Would this, considering that it is only hidden fields inside the fieldset, put the box around them (even though they don't show up on the page)? Would an <ins> tag be better to use?

Thanks,

MrDoubtFire
__________________
[ Digapay | $2 PER Email | Free Email | Design ]
MrDoubtFire is offline   Reply With Quote