Forum Moderators: open

Message Too Old, No Replies

Validation problem with form

         

JMScomp

8:31 pm on Feb 6, 2006 (gmt 0)

10+ Year Member



Below is the code for a form on my page that is having the problem:

<form method="post" action="http://ww8.example.com/cf/add.cfm">
<input type="hidden" name="userid" value="A3121922">
<input type="hidden" name="return" value="example.com/Spa/CAtravel.html">
<table class="btable" width="450">
<tbody><tr>
<td class="bt">
<p><span class="buy">Dog Spa Travel Set</span><br>
<input type="hidden" name="product[]" value="CA Dog Travel Set">
</td> <td><p class="buy">$16.00</p></td>
<td>
<input type="hidden" name="price" value="16.00">
<input type="hidden" name="units" value="44">
<input type="submit" value="Buy Now!">
</td></tr></tbody></table>
</form>

The entire page validates in HTML 4.01 Trasnitional, but I am aiming for strict. It will not validate in strict because of the first two input lines and I can't figure out why?
This form is not enclose in any <p> tags, but it is enclosed in a <td> tag of the main table for my page.

[edited by: encyclo at 8:33 pm (utc) on Feb. 6, 2006]
[edit reason] examplified [/edit]

drhowarddrfine

10:15 pm on Feb 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Like the validator said, the input has to be inside a p or div, etc.

Birdman

10:26 pm on Feb 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

It's always good to post the error that you recieved, so we can better understand the problem.

JMScomp

10:42 pm on Feb 6, 2006 (gmt 0)

10+ Year Member



Thanks it worked, and it didn't alter the look of the form.

Kyle
P.S Thanks for the welcome.

JMScomp

11:02 pm on Feb 6, 2006 (gmt 0)

10+ Year Member



Is it okay to say screen-names on here?

drhowarddrfine

3:28 am on Feb 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, you can't scream names here. Especially the B word.