Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-03 22:56:28

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

form not validated?

This is the code I find that makes the site not validated:

if ($showinput)
		$out .= '<form action="'.$_SERVER['REQUEST_URI'].'" method="post">'
			. $f
			. '</form>';

This is the part of the code which indicates as HTML error:

<p><form action=”/site/contact” method=“post”*>*<br />

How can I make it validated?

Last edited by Ruhh (2008-05-03 22:57:25)


<txp:Ruhh />

Offline

#2 2008-05-03 23:16:27

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: form not validated?

More details please. Preferably an URL for a page that demonstrates the problem, the corresponding template code and/or a tag trace. And of course, if applicable, which plugins are installed?

Offline

#3 2008-05-04 00:07:48

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: form not validated?

I would not really want to show my webpage but here is the section for the article being displayed from the page template being used:

<txp:if_category>
<txp:article /><txp:else />
<txp:if_individual_article>
<txp:article form="static" status="sticky" /><txp:else />
<txp:article_custom id="36" form="static" />
</txp:if_individual_article>
</txp:if_category>

And the form being called from the page template:

<b><txp:title /></b>
<div class="article">
<txp:body />
</div>
<br />
<br />

Then the tags used in the article for input the contact form:

<txp:zem_contact label="" mailto="sarah@domain.com">
<txp:zem_contact_text label="Name" break="" required="0" /><br /><br />
<txp:zem_contact_email break="" required="1" /><br /><br />
<txp:zem_contact_text label="Website" break="" required="0" /><br /><br />
<txp:zem_contact_textarea break="" required="1" /><br /><br />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>

The plugin that calls these tags is the zem_contact. I did some modifications to the plugin but never touched the section where it contains the html form.


<txp:Ruhh />

Offline

#4 2008-05-04 09:00:55

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: form not validated?

notextile. <txp:zem_contact label="" mailto="sarah@domain.com">
<txp:zem_contact_text label="Name" break="" required="0" /><br /><br />
<txp:zem_contact_email break="" required="1" /><br /><br />
<txp:zem_contact_text label="Website" break="" required="0" /><br /><br />
<txp:zem_contact_textarea break="" required="1" /><br /><br />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>

Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#5 2008-05-04 09:05:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: form not validated?

If you’re using TXP tags inside an article, you have to take care that Textile doesn’t touch it, which is what happens here. Surround your ZCR tags in the article like this:

==all ZCR tags==

or

notextile. all ZCR tags

Offline

#6 2008-05-04 14:09:08

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: form not validated?

Thanks! It is now validated. :)


<txp:Ruhh />

Offline

Board footer

Powered by FluxBB