Hi,
I have been lurking here for a while and have picked up enough to PHP-enable my site - thanks!
But I have run into a problem I can't solve, and I hope to get some help. I have visitors arriving at a page with a URL like this:
http://mysite.com/zipcheck.php?m=101
On that page, I have a form that queries the user for their ZIP code, then I use GET to call a script that looks like this:
<?php
if ($zip > 99499){$h = '1614';}
else if ($zip > 98799){$h = '2350';}
else if ($zip > 98599){$h = '2019';}
else if ($zip > 97999){$h = '2350';}
else if ($zip > 96999){$h = '2019';}
//snip//
else if ($zip > 199){$h = '504';}
header ("Location: http://mysite.com/pricing.php?m=$m&h=$h")
?>
The problem is, when the next page, pricing.php is loaded, only the $h variable appears correctly in the URL. The value of $m that the user arrived with is lost. So what I am getting is:
http://mysite.com/pricing.php?m=&h=2019
Instead of what I need:
http://mysite.com/pricing.php?m=101&h=2019
I'm stumped. Any help would be appreciated.
thanks,
Gino