Page 1 of 1

[SOLVED] FormBuilder doesn't validate at w3.org; how to get it validated.

Posted: Wed Mar 21, 2007 10:24 am
by RonnyK
On of my sites validates with w3.org, except if the validation is asked from the contact-page which holds the "formbuilder".

http://www.ruimzicht.eu/index.php?page=contact

The button for validation is on the bottom-left, in the footer.

The message the validation gives back is:
Error Line 177 column 122: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag.
How to have this validated?

Ronny

Re: FormBuilder doesn't validate at w3.org; how to get it validated.

Posted: Wed Mar 21, 2007 11:25 am
by cyberman
Found this in source

...

You shouldn't place a form inside tags.

Btw. for such simple forms I modify contact_form tag ... it's a lot more ressource friendly  ;).

Re: FormBuilder doesn't validate at w3.org; how to get it validated.

Posted: Wed Mar 21, 2007 11:32 am
by RonnyK
Thanks Cyberman,

that solved the validation issue. If I use the contact_form tag isn't the mail-address then visible in the source? I use the formbuilder to have the mailaddress only being pulled at moment of posting and so not visible for robots.

Ronny

Re: FormBuilder doesn't validate at w3.org; how to get it validated.

Posted: Wed Mar 21, 2007 11:42 am
by cyberman
RonnyK wrote: If I use the contact_form tag isn't the mail-address then visible in the source?
No. This is the output of contact_form tag

Code: Select all

<form action="/index.php?page=kontakt-2" method="post" style="width:30em; important; font-weight: bold;">
                 <fieldset style="padding:1em;">
                        <legend>Contact</legend>
			<label for="name" style="display:block;" >Your name :</label>
			<input type="text" id="name" name="name" value="" style="width:100%;border: 1px solid black; margin:0 0 1em 0;"/>

			<label for="email" style="display:block;" >Your email address : </label>

			<input type="text" id="email" name="email" value="" style="width:100%;border: 1px solid black; margin:0 0 1em 0;"/>

			<label for="subject" style="display:block;" >Subject : </label>
			<input type="text" id="subject" name="subject" value="" style="width:100%;border: 1px solid black; margin:0 0 1em 0;"/>

			<label for="message" style="display:block;" >Message : </label>
			<textarea id="message" name="message" rows="12" cols="48" style="width:100%; border: 1px solid black; margin:0 0 1em 0;"></textarea>


		        <input type="submit" class="button" value="Submit" style="float:left; width:50%;" /> 
                        <input type="reset"  class="button" value="Clear" style="float:left; width:50%;" />
                 </fieldset>
	</form>