Forum Moderators: coopster

Message Too Old, No Replies

XHTML validation of forms(can't substitute id for name)

xhtml validation php forms

         

cuce

5:55 am on Dec 14, 2004 (gmt 0)

10+ Year Member



I wrote a contact form in php, and i noticed that I cannot replace the name attribute with the name attribute. Because of this my xhtml won't validate. Any suggestions on how to get a functioning contact form in php that's xhtml will validate?

thanks

cuce

5:56 am on Dec 14, 2004 (gmt 0)

10+ Year Member



sorry ... i could not replace the name attribute with the id attribute...

mipapage

10:56 am on Dec 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use both:

<label for="email">Your E-mail Address</label>
<input name="email" id="email" type="text" />

I think that's what yer after...