Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Why does wordpress redirect to the home page after submitting a form? How can I make wordpress call the right page in the form action?

share|improve this question
2  
Add the form code to your question to make answers possible. –  toscho Mar 18 '13 at 22:22
1  
also.. not really a wordpress question.. –  timshutes Mar 19 '13 at 2:09

1 Answer 1

You have to set the path in the action attribute of your form, e.g.

<form action="/my/form/page" method="post">
...
</form>

If action is missing or empty it will send the form to the current page, if it is just "/" it will send it to the home page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.