Update of /cvsroot/phpweather/web
In directory usw-pr-cvs1:/tmp/cvs-serv8485
Modified Files:
index.php
Log Message:
POST is probably better here...
Index: index.php
===================================================================
RCS file: /cvsroot/phpweather/web/index.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- index.php 28 Mar 2002 16:16:47 -0000 1.20
+++ index.php 28 Mar 2002 16:24:32 -0000 1.21
@@ -10,7 +10,7 @@
/* No action - we display a form from which the user can select a
country. */
- $output = '<form action="index.php" method="get">' . "\n" .
+ $output = '<form action="index.php" method="post">' . "\n" .
'<p><input type="hidden" name="action" value="show_stations" /> ' .
get_countries_select($weather, '') .
' <input type="submit" />' . "</p>\n</form>\n";
@@ -22,7 +22,7 @@
if (empty($icao)) $icao = '';
if (empty($language)) $language = '';
- $output = '<form action="index.php" method="get">' . "\n<p>" .
+ $output = '<form action="index.php" method="post">' . "\n<p>" .
'<input type="hidden" name="action" value="show_weather" /> ' .
get_countries_select($weather, $cc) .
get_stations_select($weather, $cc, $icao) .
@@ -31,7 +31,7 @@
} elseif ($action == 'show_weather' && !empty($language)) {
/* A station has just been selected - we print the weather. */
- $output = '<form action="index.php" method="get">' . "\n<p>" .
+ $output = '<form action="index.php" method="post">' . "\n<p>" .
'<input type="hidden" name="action" value="show_weather" /> ' .
get_countries_select($weather, $cc) .
get_stations_select($weather, $cc, $icao) .
|