Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2. include"db.php";
  3.  
  4. if (isset($_GET['submit'])) {
  5.  
  6. $name = $_GET['name'];
  7. $email = $_GET['email'];
  8. $subject = $_GET['subject'];
  9. $gender = $_GET['gender'];
  10. $skill1 = $_GET['skill1'];
  11. $skill2 = $_GET['skill2'];
  12. $skill3 = $_GET['skill3'];
  13. $skill4 = $_GET['skill4'];
  14.  
  15. $query = "INSERT INTO names (name,email,subject,gender,skill1,skill2,skill3,skill4,country,comments) VALUES ('$name','$email','$subject','$gender','$skill1','$skill2','$skill3','skill4','$country','$comments')";
  16.  
  17. $result=mysqli_query($connection,$query);
  18.  
  19. if (!$result) {
  20. die('connection failed'.mysqli_error($connection));
  21. }else{
  22. echo "SUCCESS";
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement