Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (is_null($_POST['nome cognome/azienda']) or is_null($_POST['e-mail']) or is_null($_POST['corpo'])) {
- header("Location: index.html");
- die();
- }
- $body = "
- Nome: {$_POST['nome cognome/azienda']}\n
- Email: {$_POST['e-mail']}\n
- Testo:
- {$_POST['corpo']}\n\n
- ";
- $heders = "From: {$_POST['e-mail']}\r\n";
- mail("giovanni@luperti.com", "Richiesta prenotazioni dal sito", $body, $headers);
- header("Location: success.html");
- die();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement