I have made a admin page linked to a Settings -> submenu_item. This page looks like this:

http://movahon.dev/wp-admin/options-general.php?page=miama-google-recaptcha%2Fmiama-google-recaptcha.php

On this page, I have a form which I want to submit to this same page. How can I do this? It is a bit of complication, since this page already has GET parameters in its URL, in form of the query string. So, I couldn’t POST or GET to it easy, because it just redirects to the base URL, which is:

http://movahon.dev/wp-admin/options-general.php

I tried putting these in action, and none worked for me:

action="" 
action="#" 
action="<?php echo($_SERVER["PHP_SELF"]);?>"

Read more here: How can I POST or GET to the same admin page from which I am POST-ing or GET-ing


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: