Book for the conference

HTML email

you have a new person who wants to participate in your conference

Full name Destination Email Phone number Whatsapp number
".$name." ".$des." ".$email." ".$phone." ".$wtp."
"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: ' . "\r\n"; $headers .= 'Cc: myboss@example.com' . "\r\n"; mail($to,$subject,$message,$headers); echo "
You have successfully booked.
"; try { // On se connecte à MySQL $pdo = new PDO('mysql:host=db5000241107.hosting-data.io;dbname=dbs235485;charset=utf8', 'dbu469926', 'Ferard1000!'); } catch(Exception $e) { // En cas d'erreur, on affiche un message et on arrête tout die('Erreur : '.$e->getMessage()); } // Si tout va bien, on peut continuer $sql = "INSERT INTO `brasil` (`name`, `destination`, `email`, `phone`, `wtp`) VALUES (:make, :model, :mail, :phn, :wat)"; //Prepare our statement. $statement = $pdo->prepare($sql); //Bind our values to our parameters (we called them :make and :model). $statement->bindValue(':make', $name); $statement->bindValue(':model', $des); $statement->bindValue(':mail', $email); $statement->bindValue(':phn', $phone); $statement->bindValue(':wat', $wtp); //Execute the statement and insert our values. $inserted = $statement->execute(); //Because PDOStatement::execute returns a TRUE or FALSE value, //we can easily check to see if our insert was successful. if($inserted){ echo 'Row inserted!
'; } } ?>