mercoledì 8 giugno 2011

Anagrafe

<html>
 <head>
  <title>Anagrafe</title>
 </head>
 <body bgcolor="brown">
  <center><h1>Inserire i propri dati anagrafici</h1></center>
  <form action="anagrafe.php" method="POST">
   <input type="text" name="codcli" maxlength="5">-<i>C</i>odice cliente<br>
   <input type="text" name="ragsoc" maxlength="50">-<i>R</i>agione sociale<br>
   <input type="text" name="indiri" maxlength="30">-<i>I</i>ndirizzo<br>
   <input type="text" name="cap" maxlength="5">-<i>C</i>.A.P.<br>
   <input type="text" name="locali" maxlength="30">-<i>L</i>ocalit&agrave;<br>
   <input type="text" name="setmer" maxlength="20">-<i>S</i>ettore merceologico<br>
   <input type="text" name="parIVA" maxlength="11">-<i>P</i>artita IVA<br>
   <input type="text" name="codfis" maxlength="16">-<i>C</i>odice fiscale<p>
   <input type="submit" value="Invia">
   <input type="reset" value="Cancella">
  </form>
 </body>
</html>


<html>
 <head>
  <title>Anagrafe</title>
 </head>
 <body bgcolor="brown">
  <?php
   //Inizializzazione alle variabili
   $codcli=$_POST['codcli'];
   $ragsoc=$_POST['ragsoc'];
   $indiri=$_POST['indiri'];
   $cap=$_POST['cap'];
   $locali=$_POST['locali'];
   $setmer=$_POST['setmer'];
   $parIVA=$_POST['parIVA'];
   $codfis=$_POST['codfis'];

   //Visualizzazione dati
   echo "Il cliente $codcli ha inserito i seguenti dati:<br>";
   echo "Ragione sociale: $ragsoc<br>";
   echo "Indirizzo: $indiri<br>";
   echo "cap: $cap<br>";
   echo "Localit&agrave;: $locali<br>";
   echo "Settore merceologico: $setmer<br>";
   echo "Partita IVA: $parIVA<br>";
   echo "Codice fiscale: $codfis<br>";
  ?>
 </body>
</html>

Nessun commento:

Posta un commento