I am developing in C++ and is trying to learn some php. I was wondering, I know I can take values from netsend (url request) like 'index.php?user=myUser' and so on. How can i use netsend to retrieve the same value, user? Is it even possible? Sending a request, how do I determine what is the 'response' ?
Thank you, Martol1ni
It's possible, and it's easy. Just use the PHP _$GET[] variable:
http://www.w3schools.com/php/php_get.asp
The "response" is whatever your PHP program returns. It's usually an HTML page. But it could just as easily be a word, a number, a line of text ... or an XML document or a JSON object. It's totally up to you.
Here's a good tutorial (one of many you can find on the Web):
$_POST['user']; or $_REQUEST['user']
Response is what ever u output.
Use $_GET , $_POST Or $_REQUEST
Sample usage
$getValue = $_GET['query'];
$getValue = $_POST['query'];
$getValue = $_REQUEST['query'];
http://www.php.net/manual/en/reserved.variables.get.php