To help you out it’s best to list what version of wordpress you are using, what version number of the contact form plugin, and if possible a link to your site so that people can see the behavior themselves.
My bad..
WP Version: 2.1.3
Contact Form ][ version 2.0.13
Link to the contact page: http://www.sarai.in/contact-us/
Please help
Looks like the form script is put in the part where the content usually is. Did you just create a Page and in the “Write Page” field, you put in your form script/etc.?
If so, that won’t work.
You can create the form (*just* the form), and at the top – BEFORE anything else, add this line:
<?php require('/SERVER PATH TO/wp-blog-header.php'); ?>
Then you just use the regular <?php get_header(); ?>
etc. to the form to call in the WordPress stuff.
Which contact form? There are always several plugins doing the same – so provide a name and link to the plugin used.
doodlebee: never had to do that before, i have used this plugin so many times on differen blog just inserting [contact-us] anywhere the form shouled be and it always works.
moshu: Name of the plugin is: Contact Form ][ version 2.0.13 and the url is http://chip.cuccio.us/projects/contact-form-ii/
Question #1. Did you upgrade? Is the plugin compatible with your new version?
Moshu, the pluin was successfully used with wp 2.1.1 but i am currently using wp 2.1.3, so i am not sure.
Can you suggest something?
While this doesn’t resolve the issues with THIS form, there is an alternate form out there that works with 2.1.3 and it’s a branch off the same form tree (I think) as this one. It’s here and called WordPress Contact Form with Spam Protection. I use it on my 2.1.3 and it works perfectly.
Thanks harknell, i will check it out and see if it work..
Harknell.. i used the form but get the very same problem as the other ones.. the form redirects to home page without sending out email or giving error
http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/
that form is AWESOME, works like a charm, no modifications and it even has a verification code for people to copy so that you don’t get spam
i think this one will do the trick it works on all versions
try it out π
The problem is NOT with the contact forms. the problem lies with the template π
i changed the templated and the forms works like they are supposed to..
how would i find out which piece of code is creating problem?
I don’t know about templates and plugins and such, but I will say that the solution I provided above *does* work. I’ve used it on many a non-wordpress page – including forms. I’ve got that running on all my sites that have wordpress going.
Though not an answer to your question, I’ll weigh in with a contact form plugin recommendation. I have used this one on a few sites and love it:
http://www.deliciousdays.com/cforms-plugin
johnny, i have tried that plugin too and it did not work.. its the theme which has a problem and i have not been able to figure out what.