In PHP it is very easy to print a GET-Parameter. You can do it like this:
<?php $value = $_GET["param"]; echo $value; ?> |
In JavaScript it is possible too, but needs some effort:
<script type="text/javascript"> (function(){ var s = window.location.search.substring(1).split('&'); if(!s.length) return; window.$_GET = {}; for(var i = 0; i < s.length; i++){ var parts = s[i].split('='); window.$_GET[unescape(parts[0])] = unescape(parts[1]); } }()) var value = $_GET["param"]; document.write(value); </script> |