Page 1 of 1

Parameters in URLs

Posted: Tue Aug 17, 2010 2:57 pm
by computerdude
Hi, I'm wondering, when I put a parameter in a URL, how do I get the parameter? For instance,
echo "
<li><a href='";
$url = "http://www.mydomain.com/checklist/checkoff.php"; // The simple url
$name = "id"; // The parameter name
$value = "$id"; // The parameter value
$newUrl = $url . "?$name=$value"; // appending the values
print($newUrl); // prints: http://www.vnoel.com?cmd=list
echo "'>Check</a>$name - $description is due $due.</br></li>
";

Re: Parameters in URLs

Posted: Tue Aug 17, 2010 2:58 pm
by shawngoldw
$_GET["cmd"]

shawn