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
- $username = "root";
- $password = "";
- $hostname = "localhost";
- $db = "jd";
- //connection to the database
- $dbhandle = mysqli_connect($hostname, $username, $password, $db)
- or die("Unable to connect to MySQL");
- echo "Connected to MySQL<br>"
- //INSERT
- $query = " INSERT INTO Contact (Naam, E-mail, Adres, Telefoon / Gsm, Waarom?, Vraag) VALUES ('$Naam', '$Email', '$Adres', '$tel', '$Reason', '$quest') ";
- $result = mysql_query($query);
- if( $result )
- {
- echo 'Success';
- }
- else
- {
- echo 'Query Failed';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement