/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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 != ""){ echo "Weather in {$city}: [high,low] ". $res; } else echo "no city..."; ?>
Comments
