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.

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.

Thanks

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
add comment

1 Answer

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
add comment

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.