Forum Moderators: open

Message Too Old, No Replies

I need help with XTHML

Contact Form with XHTML Strict

         

Copulae

1:21 am on Apr 2, 2006 (gmt 0)

10+ Year Member



I just canīt do my contact page with XHTML STRICT!, some one can help me with this?

I need 5 field boxes, for the name, telephone, etc.

10 radio buttons for diffenrent selections.

& 1 text box. Its hard to do it?

I will really appreciate the help

DrDoc

1:32 am on Apr 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why is it hard?
All you need is the traditional form elements :)

Perhaps if you post what you have so far ...

Allan Rasmussen

8:01 pm on Apr 3, 2006 (gmt 0)

10+ Year Member



Maybe the problem is the lack of a wrapping element for the input elements!? You cannot use
<form><input /><input /></form>
but must use something like
<form><p><input /></p><p><input /></p></form>
(or
<form><div><input /><input /></div></form>
- decide on which from a semantic point of view).

Fotiman

8:14 pm on Apr 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Perhaps something like this? More details please.

<form action="" method="post">
<div>
<label for="name">
Name:
<input type="text" name="name" id="name" />
</label>
<label for="telephone">
Telephone:
<input type="text" name="telephone" id="telephone" />
</label>
<label for="field3">
field3:
<input type="text" name="field3" id="field3" />
</label>
<label for="field4">
field4:
<input type="text" name="field4" id="field4" />
</label>
<label for="field5">
field5:
<input type="text" name="field5" id="field5" />
</label>
<fieldset>
<legend>Radio</legend>
<label for="radio1">
<input type="radio" name="radios" id="radio1" value="radio1" />
radio1
</label>
<label for="radio2">
<input type="radio" name="radios" id="radio2" value="radio2" />
radio2
</label>
<label for="radio3">
<input type="radio" name="radios" id="radio3" value="radio3" />
radio3
</label>
</fieldset>
<textarea name="textbox" id="textbox" rows="4" cols="8" />
</div>
</form>