Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php //Query
- $Naam = $_POST['Naam'];
- $Email = $_POST['Email'];
- $Adres = $_POST['Adres'];
- $tel = $_POST['tel'];
- $Reason = $_POST['Reason'];
- $quest = $_POST['quest'];
- //Verbinden
- $user = "root";
- $password = "";
- $host = "localhost";
- $dbname = "jd";
- //connection to the database
- $con=($GLOBALS["___mysqli_ston"] = mysqli_connect(localhost, root,));
- //INSERT
- $query = " INSERT INTO Contact (Naam, E-mail, Adres, Telefoon / Gsm, Waarom?, Vraag) VALUES ('$Naam', '$Email', '$Adres', '$tel', '$Reason', '$quest') ";
- $result = mysqli_query($GLOBALS["___mysqli_ston"], $query);
- if( $result )
- {
- echo 'Success';
- }
- else
- {
- echo 'Query Failed';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement