CVS: phpweather test.php,1.5,1.6
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-11-10 23:10:50
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv22165 Modified Files: test.php Log Message: Make this work with PHP 4.2.3. Index: test.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/test.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- test.php 26 Aug 2002 15:55:53 -0000 1.5 +++ test.php 10 Nov 2002 23:10:46 -0000 1.6 @@ -19,6 +19,9 @@ <?php error_reporting(E_ALL); +/* We need the GET variables: */ +extract($HTTP_GET_VARS); + /* Load PHP Weather */ require('phpweather.php'); /* Load utilities to make forms */ @@ -33,7 +36,7 @@ <form action="test.php" method="GET"> <p>Metar: <input type="text" name="metar" size="60" value="<?php if (!empty($metar)) echo $metar; ?>"></p> -<p>Language: <?php echo get_languages_select($weather, $language); ?> +<p>Language: <?php echo get_languages_select($language); ?> <input type="submit"></p> </form> |