I'm stuck on this one last detail. In this test php script I'm trying to use _GET to get two variables, site and pcode, from the calling url:
//test of string manipulation
$site = $_GET['site'];
$pcode = $_GET['pcode'];
echo $site, '<br />';
echo $pcode, '<br />';
//retrieve Prosser flow data from BOR database
echo $theurl, '<br >';
When I call the script with a line like
lynx -dump http://ykfp.org/php/BOR/teststring.php?site=NACW&pcode=QD
my echo lines show me that I got site set but not pcode. If I change my script call to
lynx -dump http://ykfp.org/php/BOR/teststring.php?pcode=QD&site=NACW
, I get 'pcode' set but not 'site'. Why can't I get both set?
If I paste the url string into Firefox, it appears that both site and pcode get set. Is it just lynx that is giving me problems? Do I need to escape the & in the lynx line?