Last active
February 25, 2019 17:46
-
-
Save AhmedHelalAhmed/84a54c22eadd78202a10cffa5a6936ee to your computer and use it in GitHub Desktop.
contact us script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = mysqli_connect('localhost', 'root', 'password','contact table') or die("error in connection"); | |
$fullname=$_post['fullname']; | |
$phone=$_POST['phone']; | |
$country=$_POST['country']; | |
$email=$_POST['email']; | |
$message=$_POST['message']; | |
$sql = "INSERT INTO contact (full_name,phone,country,email,message) | |
VALUES ('$fullname','$phone','$country','$email','$message')"; | |
$conn->query($sql) or die(mysqli_error($conn)); | |
$conn->close(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment