I don't see anything wrong with a quick overview, althouguh using a meta redirect sounds weird....
Looking at what your goal is, you may wanna give "WP Contact Form" a shot. It certainly did the job for me. In the adminpanel you can set up a thank you, and fail message.
Also, its' very secure (does all kinds of trimms and stript for possible injections). And it comes with a language file that one can use. Light weight, secure and customizable.
make sure contactengine.php is in a directory you know of e.g. yoursite.com/scripts then have your form sees where it really is yoursite.com/scripts/contactengine.php
then make sure your success & error pages are shown exactly, then you wont have to many problems...
if your on a windows server you may need to set your ini in the contactengine.php (this is needed by my server on one of my sites)
Im trying to implement a contact form that uses php and then redirects to an error or success page.
What im getting stuck with is getting it to work inside wordpress.
Im trying to use the contact form chris setup a while back, well using the php code for it anyways.
Can anyone shed some light for me please.
Thanks
Here is the code im using:
The page template:
The contact form php code:
And the redirect page:
Looking at what your goal is, you may wanna give "WP Contact Form" a shot. It certainly did the job for me.
In the adminpanel you can set up a thank you, and fail message.
Also, its' very secure (does all kinds of trimms and stript for possible injections). And it comes with a language file that one can use. Light weight, secure and customizable.
I say try it, it's free
Check here
Try using a full URL to define its location
then have your form sees where it really is yoursite.com/scripts/contactengine.php
then make sure your success & error pages are shown exactly, then you wont have to many problems...
if your on a windows server you may need to set your ini in the contactengine.php (this is needed by my server on one of my sites)