I am writing a PHP script generating a number of HTML form-based actions that recalls the same script with different parameters - this works fine as I can name 'this' script in the HTML form's action parameter.
However there is an occasion that I (re)call the script with parameters that cause an action to take place. When this is complete no further user input is required before I want to run the script again with no parameters to carry out the first-time-through actions again.
I understand that $_SERVER['PHP_SELF'] contains the name of 'this' script but I do not know how to get PHP to call it. I imagine that I also need to stop the current execution of 'this' script with an exit()
Can anyone help, please.
Beano
However there is an occasion that I (re)call the script with parameters that cause an action to take place. When this is complete no further user input is required before I want to run the script again with no parameters to carry out the first-time-through actions again.
I understand that $_SERVER['PHP_SELF'] contains the name of 'this' script but I do not know how to get PHP to call it. I imagine that I also need to stop the current execution of 'this' script with an exit()
Can anyone help, please.
Beano
Comment