I have a php script which can take some GET params. I would like to know how I can call the script with a different param inside the script.
I want to achieve something like this:
if ($param == "authorise") {
//call the same script but use the $param, getAccountDetails"
i.e http://mywebsite.com/?param=getAccountDetails&var=ivar&foo=bar
}
You could just modify the $_GET array at the top of the script depending on what’s inside it:
There might be some more wizardy way of doing it, but that’d work and is fairly straightforward.
Good luck!