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>
";
Parameters in URLs
Moderator: General Moderators
-
shawngoldw
- Forum Contributor
- Posts: 212
- Joined: Mon Apr 05, 2010 3:38 pm
Re: Parameters in URLs
$_GET["cmd"]
shawn
shawn