generated from francesco/deploy-dinamico
Deploy tramite custom CI/CD Action
All checks were successful
Deploy / trigger (push) Successful in 2s
All checks were successful
Deploy / trigger (push) Successful in 2s
This commit is contained in:
86
esercizio2/process_iscrizione.php
Normal file
86
esercizio2/process_iscrizione.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
if (isset($_GET["sorgente"])) {
|
||||
highlight_file("process_iscrizione.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] === "GET") {
|
||||
die("<code>Questa pagina blocca il metodo GET, compila prima il modulo!</code>");
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="it">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Iscrizione confermata</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="iscrizione.css">
|
||||
<link rel="icon" type="image/png" href="favicon.png" sizes="96x96" />
|
||||
<script src="https://kit.fontawesome.com/c2497a668c.js" crossorigin="anonymous" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<i class="fa-solid fa-code"></i>
|
||||
<h3>Programmazione Web</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="hero">
|
||||
<div class="overlay">
|
||||
<div class="container">
|
||||
<h1>Iscrizione confermata</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page">
|
||||
<section class="container">
|
||||
<?php
|
||||
if (!isset($_POST["nome"]) || !isset($_POST["email"])) {
|
||||
// Dati non completi
|
||||
?>
|
||||
<h2>Invio dati del form non completo, riprova</h2>
|
||||
<?php
|
||||
} else {
|
||||
// Sanitizzazione input necessaria
|
||||
$nome = htmlspecialchars($_POST["nome"]);
|
||||
$email = htmlspecialchars($_POST["email"]);
|
||||
|
||||
echo "<h2>Dati form inviati con successo!</h2>";
|
||||
echo "<p>Contenuto dell'array <code>$_POST</code>:</p><br>";
|
||||
echo "<p><strong>Nome</strong>: " . $nome ."</p>";
|
||||
echo "<p><strong>E-mail</strong>: " . $email ."</p>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
||||
<section class="container">
|
||||
<div class="buttons">
|
||||
<a class="button" onclick="history.back();">Torna indietro</a>
|
||||
<a class="button" href="process_iscrizione.php?sorgente">Leggi sorgente</a>
|
||||
<a class="button" href="../esercizio3">Es. successivo</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
Realizzato da Francesco Giuseppe Mancuso - classe 5E - www.francescomancuso.it
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user