via an anchor tag (<a href=...... </a>) i am linking to a secondary php file. the link passes a paramter like -> http://www.mylink.com?parm=12345
when i try and access the variable $parm it is empty, where do i find the paramater data, and how do i assign it to a variable for use within my code ?
do the fallowing on the page that the variables get passed TO.
$parm=$_REQUEST['parm']; echo $parm;
that will grab your variables for ya.
for a bit of extra info, the reason php keeps the variables in the array is for security, and is set in php.ini by setting register_globals=off
$_REQUEST[] is an array that comingles GET, POST and COOKIE information. If you want to be certain which one you're plucking out of the ether, you should specify:
$_GET['parm']
so it will not be clobbered by a similarly named cookie variable.
Try $GET['parm'] since you're using method = 'GET' if your using POST your syntax has to be $POST['parm'].
Alternativly you can also use $_REQUEST['parm'].