forked from Uticodes/BlessFlame_FrontEnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.php
More file actions
27 lines (24 loc) · 870 Bytes
/
Copy pathform.php
File metadata and controls
27 lines (24 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
if(isset($_POST['submit'])){
include 'config.php';
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$message=$_POST['message'];
$qry= "INSERT INTO contact_form_info (firstname,lastname,email,phone,message)
VALUES('$firstname','$lastname','$email','$phone','$message')";
$result = $conn->query($qry);
if($result == TRUE){
echo "<script type = \"text/javascript\">
alert(\"Message Sent Successfully \");
window.location = (\"contact-us.html\")
</script>";
} else{
echo "<script type = \"text/javascript\">
alert(\" Failed. Try Again\");
window.location = (\"contact-us.html\")
</script>";
}
}
?>