Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
1.1. Les formulaires en PHP - Récupération BY L.A
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<form action="thanks.php" method="post">
<label for="fname">First name :</label>
<input type="text" id="fname" name="firstname">
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lastname">
<label for="email">Email :</label>
<input type="email" id="email" name="email">
<label for="phone">Phone :</label>
<input type="phone" id="phone" name="phone">
<label for="subject"></label>
<select name="subject" id="subject">
<option value="1">For this reason</option>
<option value="2">Another reason</option>
<label for="message">Message :</label>
<textarea id="message" name="message"></textarea>
<div class="button">
<button type="submit">SEND</button>
echo 'Merci '. $_POST['firstname'] .' '. $_POST['lastname'] .' de nous avoir contacté à propos de '. $_POST['subject'] . '<br>' .'
Un de nos conseiller vous contactera soit à l’adresse '.$_POST['email'] .' ou par téléphone au '.$_POST['phone'] .' dans les plus brefs délais pour traiter votre demande : <br>'.
$_POST['message'] ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.