CVS: phpweather index.php,1.23,1.24 pw_utilities.php,1.2,1.3
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-03-27 20:13:26
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv8521 Modified Files: index.php pw_utilities.php Log Message: This should fix most of the problems with XHTML in the pages. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- index.php 27 Mar 2002 14:47:34 -0000 1.23 +++ index.php 27 Mar 2002 20:13:19 -0000 1.24 @@ -35,8 +35,8 @@ country. */ echo ' -<p> <form action="index.php" method="get"> +<p> <input type="hidden" name="action" value="show_stations" /> '; @@ -44,8 +44,8 @@ echo ' <input type="submit" /> -</form> </p> +</form> '; } elseif ($action == 'show_stations' && !empty($cc)) { @@ -53,8 +53,8 @@ stations in that country. */ echo ' -<p> <form action="index.php" method="get" /> +<p> <input type="hidden" name="action" value="show_weather" /> '; @@ -68,15 +68,15 @@ echo ' <input type="submit" /> -</form> </p> +</form> '; } elseif ($action == 'show_weather' && !empty($language)) { /* A station has just been selected - we print the weather. */ echo ' -<p> <form action="index.php" method="get"> +<p> <input type="hidden" name="action" value="show_weather" /> '; @@ -86,8 +86,8 @@ echo ' <input type="submit" /> -</form> </p> +</form> '; if ($cc == $old_cc) { Index: pw_utilities.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/pw_utilities.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- pw_utilities.php 27 Mar 2002 14:47:35 -0000 1.2 +++ pw_utilities.php 27 Mar 2002 20:13:20 -0000 1.3 @@ -11,7 +11,7 @@ $countries = $weather->db->get_countries(); while (list($cc, $country) = each($countries)) { if ($cc == $old_cc) { - echo "<option value=\"$cc\" selected>$country</option>\n"; + echo "<option value=\"$cc\" selected=\"selected\">$country</option>\n"; } else { echo "<option value=\"$cc\">$country</option>\n"; } @@ -33,7 +33,7 @@ while (list($icao, $name) = each($icaos)) { if ($icao == $old_icao) { - echo "<option value=\"$icao\" selected>$name</option>\n"; + echo "<option value=\"$icao\" selected=\"selected\">$name</option>\n"; } else { echo "<option value=\"$icao\">$name</option>\n"; } @@ -52,7 +52,7 @@ while (list($lc, $language) = each($languages)) { if ($lc == $old_language) { - echo "<option value=\"$lc\" selected>$language</option>\n"; + echo "<option value=\"$lc\" selected=\"selected\">$language</option>\n"; } else { echo "<option value=\"$lc\">$language</option>\n"; } |