How to call a script that expects $_POST from inside a function
Posted
by donpal
on Stack Overflow
See other posts from Stack Overflow
or by donpal
Published on 2010-05-18T15:18:10Z
Indexed on
2010/05/18
15:20 UTC
Read the original article
Hit count: 258
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?
© Stack Overflow or respective owner