index.php
PHP:
<?php
//тут к mysql приконнектиться и выбрать базу/таблицу
if( $_GET["origin"] > '') {
$city = $_GET["origin"];
$sql = "'SELECT * base WHERE origin=". $city . "'";
$result = mysql_fetch_assoc($sql);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Тег FORM</title>
</head>
<body>
<?php
if(is_array($result )) {
foreach ($result as $key){
echo $key["row"];
}
}
?>
<form method="GET" action="">
<input id="Город" name="origin" type="text" >
<p><input type="submit"></p>
</form>
</body>
</html>