//This is how you would send info through a url. //Any value passed throught a url string is caught in //the super global called "_GET" //HTML form page. <a href="mypage.php?id=1"></a> //HTML process page. // So _GET, gets the value from the link up top whem the user clicks the buttonthe super global just needs to know the name of the variable which is $id. <?php $result = _GET['id']; echo "<br /><strong>" . $id . "</strong>"; ?> //URL Encoding is when you allow special charactors to be send through a url string like real $ or &. //So sending a value like $100 as a value through a url string has to be encoded. In you are encoding //values after the question mark ?id=1 get encoded using urlencode(); // If the entire url is being dynamically generated use rawurlencode();
//This example encodes johnson&
<a href="mypage.php?id=<?php echo urlencode(johnsons&); ?> johnsons&name="Robert"></a> |