Location: PHPKode > projects > LAMP School > comuni/agg_com.php
<?php
   @include ("../php-ini.php");
    @include("../funzioni.php");
	
	// istruzioni per tornare alla pagina di login 
	session_start();	
    $tipoutente=$_SESSION["tipoutente"]; //prende la variabile presente nella sessione
	if ($tipoutente=="")
	   {
	   header("location: ../login/login.php"); 
	   die;
	   }
	
   $con=mysql_connect($db_server,$db_user,$db_password);
 print"<html>";
    print"<head><title>aggiorna</title></head>";
    print"<body>";
	print("<table border=0 width='100%'>
		<tr>
		   <td align ='center' bgcolor='$bgcolor_titolo'><strong><font size='+1'>INSERIMENTO COMUNE</font></strong></td>
		</tr>
		</table>");
		print"<br><br>";
       print"<center> <table border='0'>";
         print"<form action='reg.php' method='GET'>";
		  	 print"<tr><td><input type ='hidden' name='idcomuni' size='10' value='$idcomune'></td></tr>";
             print"<tr><td><b>Denominazione<font color='#ff0000'>*</b></td><td><input type ='text' name='denominazione' size='20' value='$denominazione' maxlength='20' ></td></tr>";
             print"<tr><td><b>CAP<font color='#ff0000'>*</b></td><td><input type ='text' name='cap' size='6' value='$cap' maxlength='5'></td></tr>";				  	
             print"<tr><td><b>Codistat<font color='#ff0000'>*</b></td><td><input type ='text' name='codistat' size='10' value='$codistat'></td></tr>";
             print"<tr><td><b>Provincia<font color='#ff0000'>*</b></td><td><input type ='text' name='provincia' size='15' value='$provincia'></td></tr>";
             print"<tr><td><b>Sigla provincia<font color='#ff0000'>*</b></td><td><input type ='text' name='siglaprovincia' size='2' maxlength='2' value='$siglaprovincia'></td></tr>";
 			 print"<tr><td><b>Regione<font color='#ff0000'>*</b></td><td><input type ='text' name='regione' size='15' value='$regione'></td></tr>";
 			 print"<tr><td><b>Stato estero</b></td><td><input type ='text' name='statoestero' size='15' value='$statoestero'></td></tr>";  
 			 print"<table>";
			 print"<tr><td><center><input type ='submit' value='Inserisci' size='10'></td></tr>"; 
			 print"<tr><td><br></td></tr>"; 
         print"</form>";
		 print"</table>";
       print"</table> </center>";
	  	print("<center> <form name='form8' action='lis_com.php'>");
		print("<input type='submit' value='<<Indietro'> </center>");
		print"<br>";
		print"<tr><td><center> <font color='#ff0000'>* </font> (Campi obbligatori)</tr></td>";
    print"</body>";
 print"</html>";
 mysql_close($con);
?>
Return current item: LAMP School