I want to send user submitted values from a form to a web address. I am using PHP to accomplish this. The book I'm working out of, PHP for the Web by Larry Ullman uses variables to store the form values, like this:
$input = $_POST['value'];
<form>
<input type="textbox" id="value">
<input type="submit" value="submit">
</form
Next I would send those values to the web address like this
$req = "http://webaddress/?value=$input";
Now I would like to get a json response from the web address. like this:
$response = json_decode(file_get_contents($req));
That is my question. How does that response get from the web address to my variable?