I tried redirecting to the current page with the form in my php application. Now I am facing a problem.
<form name="myform" action="?page=matching" method="GET">
<input id="match_button" type="submit" name="button" value="button" onClick="func_load3()" />
</form>
action="?page=matching" means current page, because I use a single entry in my php application.
With the code on, When I click the button, it redirects to the home page.
And I tried to use:
<form name="myform" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET">
but it still doesn't work.
Therefore, I must ask you for help. Do you have any ideas on this? How to fix it? Thank you in advance.
source
share