Hi,
I have been detecting POST submits as below
if(isset($_POST['someindex']) && $_POST['someindex']==="somevalue"){ .. }
which I know should be replaced by
if($_SERVER['REQUEST_METHOD']=== "POST"){ ... }
So I changed it in entirety in my project and on testing found that there are conflicts. Now my main file has a slider with a login and logoff button. and then when the user is logged in it includes the user page, which in turn keeps including other pages . So if there are many buttons on those pages, it can result in a conflict as I found out.
I wish to confirm that to avoid the conflicts is the following the right way to go about it. I would like to say that while the index may be the same, the values for each are unique.
if($_SERVER['REQUEST_METHOD']=== "POST" && if(isset($_POST['someindex']) && $_POST['someindex']==="somevalue")){ ... }
Thanks all !