Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-11-03 15:58:06

ajw-art
Member
Registered: 2010-02-10
Posts: 33

Post form to same page as form

I’ve got a contact form I’m processing with PHP, and I want the success and error messages to output to the same page as the form. I’ve got the two separate parts working— the form submits, and the PHP registers the submit, outputs a success message, and sends me an email— but none of the form values are being passed to the script: all of the emails I get are blank. I’ve tried setting the form action to “”, “#”, “permlink of contact page”, “php self”, and just about every combination of options I could find on the internet— no dice.

Is this possible with Textpattern, or do I just have to give up and process and submit with a separate page?

Offline

#2 2010-11-04 08:44:54

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

Re: Post form to same page as form

Have you considered using the zem_contact_reborn plugin, which does exactly what you’re describing?

Offline

#3 2010-11-04 15:01:56

ajw-art
Member
Registered: 2010-02-10
Posts: 33

Re: Post form to same page as form

Oh, I’d forgotten about that plugin! It works like a charm.

Though I still wonder, for more complex forms without zem_contact, is it possible to have the form submit to the same page it’s on?

Offline

#4 2010-11-04 15:29:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

Re: Post form to same page as form

is there a reason u do not use comments?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2010-11-04 15:43:32

ajw-art
Member
Registered: 2010-02-10
Posts: 33

Re: Post form to same page as form

@Colak— It’s a contact form, so I need it to be sent to me at my email address, not posted to the main page where everyone can see it.

Offline

Board footer

Powered by FluxBB