The page that Ken has for downloading the NWS forecast script has multiple cities to choose from on the forecast because of a drop down menu..I added some towns that I wanted, and include the following script into my webpage but when I tested it out, there is no dropdown or anything for displaying the other towns?? Is there something I'm doing wrong??
<?php
$doIncludeNWS = true;
include("advforecast2.php"); ?>
www.fitzweather.com/index.phpIn order to get the drop down menu to display you have to make a change in advforecast2.php
In the Settings section you will see this code:
// ----------------------SETTINGS---------------------------------------------
// V3.00 -- this following array can be used for multiple forecasts in standalone mode
// for template use, add a $SITE['NWSforecasts'] entry in Settings.php to have these entries.
// to activate the definitions below, replace the /* with //* to uncomment the array definition
/*
$NWSforecasts = array(
// the entries below are for testing use.. replace them with your own entries if using the script
// outside the AJAX/PHP templates.
// ZONE|Location|point-forecast-URL (separated by | characters
"CAZ513|Saratoga, CA (WRH)|http://forecast.weather.gov/MapClick.php?CityName=Saratoga&state=CA&site=MTR&textField1=37.2639&textField2=-122.022&e=1&TextType=2",
"PAZ061|Omaha, NE (CRH)|http://forecast.weather.gov/MapClick.php?CityName=Allentown&state=PA&site=MTR&textField1=40.5535&textField2=-75.6032&e=1&TextType=2",
"ALZ064|Gulf Shores, AL (SRH)|http://forecast.weather.gov/MapClick.php?CityName=Gulf+Shores&state=AL&site=MOB&textField1=30.27&textField2=-87.7015&e=0&TextType=2",
'MDZ022|Salisbury, MD (ERH)|http://forecast.weather.gov/MapClick.php?lat=38.36818&lon=-75.59761047363281&unit=0&lg=english&FcstType=text&TextType=2',
'AKZ101|Anchorage, AK (ARH)|http://forecast.weather.gov/MapClick.php?lat=61.21806&lon=-149.90027780000003&unit=0&lg=english&FcstType=text&TextType=2',
'HIZ005|Honolulu, HI (HRH)|http://forecast.weather.gov/MapClick.php?lat=21.30694&lon=-157.85833330000003&unit=0&lg=english&FcstType=text&TextType=2',
);
//*/
Near the top, where it reads
$NWSforecasts = array( , right above this there is a
/* Just add an extra forward slash so it looks like this
//*This will uncomment the array definition. Then all you need to do is add the info for the areas you would like in your drop down selector.
** Curly was responding at the same time as me. He is stating the same thing, I just wanted to give you a little more detail on what steps you need to take.
