Revision: 28094
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 30, 2010 21:49 by orenus
Initial Code
<html>
<form method="post" action="MyWeather.php">
<input type="text" name="city">
<input type="submit" value="go!">
</form>
</html>
<?php
$city=$_POST['city'];
if ($city != ""){
$res = shell_exec("./getWdr.sh {$city}");
echo "Weather in {$city}: [high,low] ". $res;
}
else
echo "no city...";
?>
Initial URL
Initial Description
Initial Title
Get Weather - Step 1 - Simple HTML Form...
Initial Tags
form, php
Initial Language
PHP