- Code: Select all
<a href="http://www.wunderground.com/US/IA/<? echo $city ?>.html">
<img src="http://banners.wunderground.com/banner/gizmotimetempbig_both/language/www/US/IA/<? echo $city ?>.gif"
alt="Click for <? echo $city ?>, Iowa Forecast" height=40 width=467 border="0"></a><br><br><br>
<table width="60%" border="0" cellspacing="0" cellpadding="0">
What I would like to do is have a window popup to where the user can select their city (as this is a locally used website) from a dropdown list and have it set as a cookie, and allow the user to change this value as needed. Then I would like the above script to recall the cookie variable. All attempts I have made haven't worked.
Another Idea would be to recall the city from their account information as they are required to select a city when they register. Only problem with this is it is a classifieds site and most visitors don't register.
Any suggestions on how I would go about this?
Thanks in advance,