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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
Last edited by RonnyK on Wed Mar 21, 2007 12:38 pm, edited 1 time in total.
cyberman

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

Post 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  ;).
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
cyberman

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

Post 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>
Post Reply

Return to “Layout and Design (CSS & HTML)”