Using a plugin to add forms to a page
-
Hey, I have a client looking to add a couple specific forms to pages on her site, I tried to puzzle through this myself to no avail. Basically all I’m doing is allowing her to create the page with help text and terms etc. and then using the “the_content” hook to append a form to the page, this works like a charm, my problem is that when the “submit” button is pressed, the page reloads, the form seems to submit, but I get no post data in my plugin. I’ve added a snippet into the “init” hook to capture all post data and record it in the db to ensure it getting there, but it never even makes it that far. I then opened firebugs NET console and watched the post, there is a 301 Moved Permanently notice, and that is where I’m stumped, I tried pointing the action of the form directly to a php file that should accept it, but even that didn’t work. I’m dyin here! Does wordpress use a double post system? does it clear the post before it calls the init hook? any help would be much appreciated!
- The topic ‘Using a plugin to add forms to a page’ is closed to new replies.