Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-17 03:29:05
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Having an awful time getting zem contact to work
Okay, this is the second time I’m trying to implement the zem contact form in my site. The first time it worked perfectly with no problems, then my site was hacked into and I had to start over, now I cannot get anything to work. lol.
First off, this is the code I’m using for the form:
<txp:zem_contact mailto="myemail
myemail.com” />@
<p><txp:zem_contact_text label="Name" /></p>
<p><txp:zem_contact_email required="1" label="E-Mail" /></p>
<p><txp:zem_contact_text label="Subject" /></p>
<p><txp:zem_contact_textarea label="Message" required="1" /></p>
<p><txp:zem_contact_submit label="Send" /></p>
</txp:zem_contact>
<br />
The form works properly in that it sends the message to my e-mail address. What I can’t seem to get to work is having a “Thank You” message display once the form is submitted correctly. Before when I actually got everything to work with the thank you message, I followed this link: <a href=“http://forum.textpattern.com/viewtopic.php?pid=87017#p87017”>http://forum.textpattern.com/viewtopic.php?pid=87017#p87017</a>
When it worked the last time, it displayed the “thank you” message right below the words “Contact Me” on the contact page of my site…in the same place it displays the error messages if the form is not filled in correctly. I just can’t seem to remember how I did it. I’ve changed the code in the PHP file like the link said:
if ($r) {
$_POST = array();
header("Location: /thankyou");
}
<br />
and replace with
if ($r) {
$_POST = array();
header("HTTP/1.x 301 Moved Permanently");
header("Status: 301");
header("Location: /thankyou".$url);
header("Connection: close");
}
<br />
I’ve made an article called “thankyou” with my message and it didn’t work once submit was clicked and I’ve made a section called “thankyou” with the message in the html, and yet again it did not work.
Can anyone tell me what I’m doing wrong here?
Thanks,
Deron
Last edited by deronsizemore (2006-01-17 16:37:26)
Offline
Re: Having an awful time getting zem contact to work
Have you try the “reborn” version of this plugin ? It has a lot of debug…
Offline
#3 2006-01-17 16:38:40
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Having an awful time getting zem contact to work
Can you post a link to the reborn one? I’ve downloaded the newest zem_contact plugin, if that’s all you’re talking about?
I’d just prefer to use what I used before when everthing was working correctly if you could help out with that? Do you have any idea why the “thankyou” form is not showing up above the contact form once someone clicks submit? It was before, and I don’t think I’m doing anything differently now then before.
Offline
Re: Having an awful time getting zem contact to work
“Reborn thread:“http://forum.textpattern.com/viewtopic.php?id=13416.
(grmbl 60 seconds between posts… )
Offline
#5 2006-01-17 17:00:30
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Having an awful time getting zem contact to work
Thanks! Don’t know what I was doing wrong, but right after I posted I got the thank you form to work.
-Deron
Offline