If the user manually clicks the 'submit' button, i use this code:
if (isset($_POST['submit_findall'])) { ...
But what what code should I use if I want to activate this from within a script ?
Thanks!
If the user manually clicks the 'submit' button, i use this code:
if (isset($_POST['submit_findall'])) { ...
But what what code should I use if I want to activate this from within a script ?
Thanks!
Change:
if (isset($_POST['submit_findall'])) {
// Something
}
to:
// Something
if($_SERVER['REQUEST_METHOD']=='POST') is bullet proof indicator of the POST form submit