Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
220 views
in Plugins by
I'm building a form, and if the method if GET, I should display the form, if the method is POST I should process differently.

Is there a built)in function ? or I should go through $_POST array ?

Thanks.

1 Answer

+1 vote
by

You can use the qa_is_http_post() function on 1.7. Since v1.8 you can use qa_is_http_get() as well (but it has not yet been released, of course).

...