WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating a custom plugin that has dynamic forms and I wanted to ask on how I can create a dynamic form action url.

Example is Contact Form 7, how did cf7 create the form action url without creating a new page or a file for submission?

Please share any idea on how to do something like that for plugin.


share|improve this question
ah okay, i got an idea from this question stackoverflow.com/questions/1694563/… – Jorge Oct 18 '12 at 18:59
You could go into cf7 and tear it apart, break it to find out how it does what it does. – Nicole Oct 18 '12 at 19:02
up vote 2 down vote accepted

It doesn't need a new submit URL, most of the plugins submit the form on the same page(the one on which the form was rendered), then before rendering the form they check if there is submitted data present. Then for eg. if data is present then they have to show a thankyou message & skip rendering the form, if there is no data present they will just render the form

This logic of course differs a lot

share|improve this answer

Your Answer


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.