Commit iniziale
This commit is contained in:
23
elabora.php
Normal file
23
elabora.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
$nome = $_POST["nome"];
|
||||||
|
$cognome = $_POST["cognome"];
|
||||||
|
$dataNascita = $_POST["datanascita"];
|
||||||
|
$luogoNascita = $_POST["luogonascita"];
|
||||||
|
$provincia = strtoupper($_POST["provincia"]);
|
||||||
|
$codFiscale = strtoupper($_POST["codFiscale"]);
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="it">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title><?php echo "Conferma di " . $nome . " " . $cognome ?></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
echo "<h1> Benvenuto, " . $nome . " "; echo $cognome . "</h1>";
|
||||||
|
echo "Il tuo codice fiscale è: " . $codFiscale . "<br>" . "Sei nato il " . $dataNascita . " a " . $luogoNascita . " (" . $provincia . ")<br><br>";
|
||||||
|
echo "Richiesta effettuata " . date("d M Y H:i:s") . " (" . date_default_timezone_get() . ")";
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
26
index.html
Normal file
26
index.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="it">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Modulo dati personali</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form action="elabora.php" method="post">
|
||||||
|
<label for="firstname">Nome: </label>
|
||||||
|
<input type="text" name="nome" id="firstname" required><br>
|
||||||
|
<label for="lastname">Cognome: </label>
|
||||||
|
<input type="text" name="cognome" id="lastname" required><br>
|
||||||
|
<label for="birthday">Data di nascita: </label>
|
||||||
|
<input type="date" name="datanascita" id="birthday" required><br>
|
||||||
|
<label for="birthplace">Luogo di nascita: </label>
|
||||||
|
<input type="text" name="luogonascita" id="birthplace" required>
|
||||||
|
(
|
||||||
|
<input type="text" name="provincia" id="province" size="2" maxlength="2" minlength="2" required>
|
||||||
|
)<br>
|
||||||
|
<label for="codfiscale">Codice Fiscale: </label>
|
||||||
|
<input type="text" name="codFiscale" id="codfiscale" minlength="16" maxlength="16" required><br>
|
||||||
|
<input type="submit" value="Invia">
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user