Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
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
Pages: 1