I've got a request (a back-URL from a form) from a server.It sent the string: http://www.url.com/test.php?result=oke
Can i use a VAR $result or something like that? ie how can i put the oke in my site?
tnx gb
www.url.php?result=ok where can i put that ?
Moderator: General Moderators
Code: Select all
echo $GET['result'];errors?
Could you emphasize on how to handle errors with this?
im building myself a mysql search script to get used to mysql and php, and i have -
echo $_GET['q'];
so page.php?q=jimbo
will echo jimbo on the page, but if it is just page.php, an error appears telling you that q contains nothing, any way of getting rid of this error?
im building myself a mysql search script to get used to mysql and php, and i have -
echo $_GET['q'];
so page.php?q=jimbo
will echo jimbo on the page, but if it is just page.php, an error appears telling you that q contains nothing, any way of getting rid of this error?
Something like
will do the trick.
Code: Select all
<?php
if (isset($_GET['q'])) //check to see if q is set
{
echo $_GET['q'];
}
?>