Pagine

mercoledì 8 giugno 2011

Anagrafe

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

PARTE 2:
<html>
<head>
<title>Anagrafe</title>
</head>
<body>
<?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