mercoledì 8 giugno 2011

ANAGRAFE

PARTE IN HTML
<html>
<head>
<title>anagrafe</title>
</head>
<body background="immagini/pergamenapod.png">
<form action="gp_ud7.php" method="POST">
<h2><center><font color="red">ANAGRAFE</font></h2>
<b><center>Iserire i dati richiesti<center></b>
<p>
<p>
<table border=0 align="center">
<tr>
<td>Codice cliente</td>
<td><input type="text" name="codice" maxlength="5"></td>
</tr>

<tr>
<td>Indirizzo</td>
<td><input type="text" name="indiri" maxlength="50"></td>
</tr>

<tr>
<td>Ragione sociale</td>
<td><input type="text" name="ragion" maxlength="30"></td>
</tr>

<tr>
<td>C.A.P.</td>
<td><input type="text" name="cap" maxlength="5"></td>
</tr>

<tr>
<td>Localit&agrave;</td>
<td><input type="text" name="locali" maxlength="30"></td>
</tr>

<tr>
<td>Settore merceologico</td>
<td><input type="text" name="settor" maxlength="20"></td>
</tr>

<tr>
<td>Partita IVA</td>
<td><input type="text" name="partit"maxlength="11"></td>
</tr>

<tr>
<td>Codice fiscale</td>
<td><input type="text" name="codfis" maxlength="16"></td>
</tr>

</table>
<input type="submit" value="Invia">
<input type="reset" value="cancella">
</center>
</body>
</html>

PARTE IN PHP
<html>
<head>
<title>anagrafe</title>
</head>
<body background="immagini/pergamenapod.png">
<?php

//inizializzazione delle variabili
$codice=$_POST['codice']; $indiri=$_POST['indiri']; $ragion=$_POST['ragion'];
$cap=$_POST['cap']; $locali=$_POST['locali']; $settor=$_POST['settor'];
$partit=$_POST['partit']; $codfis=$_POST['codfis'];

echo "<h2><center><font color=red>ANAGRAFE</font></center></h2><p><p><p>";
echo "<center><b>Riepilogo dati inseriti:</b></center><p>";
echo "<center>Codice cliente: <b>$codice</b></center><br>";
echo "<center>Ragione sociale: <b>$ragion</b></center><br>";
echo "<center>Indirizzo: <b>$indiri</b></center><br>";
echo "<center>C.A.P.: <b>$cap</b></center><br>";
echo "<center>Localit&agrave;: <b>$locali</b></center><br>";
echo "<center>Settore merceologico: <b>$settor</b></center><br>";
echo "<center>Partita IVA: <b>$settor</b> </center><br>";
echo "<center>Codice fiscale: <b>$settor</b></center><br>";
?>
</body>
</html>
 

Nessun commento:

Posta un commento