a me embra che ci siano tutti

<?php
require_once("incphp/digitize.php");
require_once("incphp/common.php");
require_once("incphp/globals.php");

//==============================================


$definepoint = $_GET["definepoint"];
if ($definepoint) {
$imgxy = $_GET["imgxy"];
} else {
$imgxy = $_POST["imgxy"];
$addpoint = $_POST["addpoint"];
}

if ($addpoint) {
$nome = $_POST["nome"];
$datazione = $_POST["datazione"];
$funzione = $_POST["funzione"];
$quota = $_POST["quota"];

// Write to DB
$dbreturn = DB_addPoint($imgxy, $nome, $datazione, $funzione, $quota);
}




?>
<HTML>
<HEAD>
<link rel="stylesheet" href="templates/scheda_siti.css" type="text/css">
<title>Inserimento dei siti archeologici</title>
</HEAD>
<BODY leftmargin="3" topmargin="3" marginwidth="3" onLoad="window.focus()" >

<table width="100%" class="BGCHEADFOOT"><tr><td>SCHEDA SITO</td></tr></table>




<?php
if ($definepoint):
?>
<FORM action="digitizedlg.phtml" method=POST>
<table class="DIGITIZE">
<tr>
<td>nome</td>
<td><input type="text" name="nome" size="15"></td>
</tr>
<tr>
<td>datazione</td>
<td><input type="text" name="datazione" size="11"></td>
</tr>
<tr>
<td>funzione</td>
<td><input type="text" name="funzione" size="55"></td>
</tr>
<tr>
<td>quota</td>
<td><input type="integer" name="quota" size="23"></td>
</tr>
</table>



<input type="button" onClick="submit();opener.parent.mapFrame.removeSym Points('digitize')" name="ok" value="OK" size="30">
<input type="button" onClick="self.close();opener.parent.mapFrame.remov eSymPoints('digitize')" name="cancel" value="Annulla" size="30"><FONT COLOR="#b1bbc5">__________________________________ _________________________________________________</FONT><FONT COLOR="#0000ff">HELP</FONT>

<input type="hidden" name="imgxy" value="<? echo $imgxy ?>">
<input type="hidden" name="addpoint" value="1">
</FORM>

<?php
else:
if ($dbreturn == 1):
?>

Il dato e' stato inserito

nel database:


<table>
<tr>
<td>nome</td>
<td><? echo $nome ?></td>
</tr>
<tr>
<tddatazione</td>
<td><? echo $datazione ?></td>
</tr>
<tr>
<td>funzione</td>
<td><? echo $funzione ?></td>
</tr>
<tr>
<td>quota</td>
<td><? echo $quota ?></td>
</tr>


</table>

<form>
<input type="button" value="Chiudi" onClick="self.close()">
</form>


<?php
else:
echo ("<h3>ERROR</h3> \n");
echo ("Il dato non e' stato inserito nel database.

inserimento fallito:
\n");
echo $dbreturn;
endif;

endif;
?>


</BODY>
</HTML>