<?php
//per vedere il funzionamento del form
if(isset($_POST['Submit'])){
$prova=$_POST['suggest1'];
echo "<br>$prova<br>";
}
/*NOTA
ho fatto una tabella chiamata prova con
id int(3) autoincrement primarikey
nome varchar (50)
e l'ho rimepita di parole da abbondio, asdrubale....zoppa, zoccola, zagaglia
e ho fatto il file mesi_1.php
*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>prova N° 1</title>
<script src="lib/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="lib/jquery.metadata.js" type="text/javascript"></script>
<script src="lib/jquery.autocomplete.mod.js" type="text/javascript"></script>
<script src="autocomplete.custom.js" type="text/javascript"></script>
<link href="lib/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<p>
<input type="text" name="suggest1" id="suggest1" class="suggest" alt="php/mesi_1.php"/>
</p>
<p>
<input type="submit" name="Submit" value="Invia">
</p>
</form>
</body>
</html>