How to call a script that expects $_POST from inside a function
- by donpal
My script.php accepts $_POST input and echos a string.
$theinput = $_POST['theinput'];
$output = //some processing;
echo $output;
I would like to use this script inside a function where the same input is now a $_POST
function processinput($someinput){
//I need to call the above script and give it
//the same input `$someinput` which is not a `$_POST` anymore
}
Any ideas how to do that?