This is a pretty basic example..
I just thought this would be helpful for anyone wanting to do this.
HTML Code:
function onCreated() {
temp.link = "http://www.yourwebserver.com/test.php?test=123";
temp.req = requesturl(temp.link);
this.catchevent(temp.req,"onReceiveData","onData");
}
function onData(obj) {
echo("Result:" SPC obj.fulldata); // obj.<var> the vars can be found at the bottom
}
Heres my PHP Code I used..
PHP Code:
<?php
foreach ($_GET as $index => $val)
$$index = $val;
echo("test = $test");
?>
Quote:
obj.<var>'s
THTTPRequest (TGraalVar):
address - string (read only)
contentlanguage - string (read only)
contenttype - string (read only)
downloadcomplete - boolean (read only)
file - string (read only)
fulldata - string (read only)
lastmodified - string (read only)
port - integer (read only)
returncode - integer (read only)
returnmessage - string (read only)
server - string (read only)
|
Notes:
-You could proabley make some pretty interesting things, like a stats server regarding you have knowledge of php and such.
-Experiment, requesturl("http://www.google.com") or something see what happens lol..