Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AhmedHelalAhmed
Last active February 25, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedHelalAhmed/84a54c22eadd78202a10cffa5a6936ee to your computer and use it in GitHub Desktop.
Save AhmedHelalAhmed/84a54c22eadd78202a10cffa5a6936ee to your computer and use it in GitHub Desktop.
contact us script
<?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