I need to write plugin which add form at the end of specific posts with submit button. It is clear for me. Next after click submit I need to submit form to my own form from plugin and show more inputs for user. After filling the form I want to save data to db.

I know how to do all the things, but how can I submit my form included in post to other specific URL?

Thanks for all advices.

  • Forms have an attribute action where you should put the url of the page that process form. In your case that url should be the permalink of the other post that you can retrieve using get_permalink – gmazzap Nov 13 '13 at 8:54
  • I haven;'t tried anything, because I have no idea how to do this. @G.M. Ok, but I don't want to create other post, I want to submit form to my plugin. Is there any posibility to get link do plugin function? – Chris Nov 13 '13 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.