Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include"db.php";
- if (isset($_GET['submit'])) {
- $name = $_GET['name'];
- $email = $_GET['email'];
- $subject = $_GET['subject'];
- $gender = $_GET['gender'];
- $skill1 = $_GET['skill1'];
- $skill2 = $_GET['skill2'];
- $skill3 = $_GET['skill3'];
- $skill4 = $_GET['skill4'];
- $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')";
- $result=mysqli_query($connection,$query);
- if (!$result) {
- die('connection failed'.mysqli_error($connection));
- }else{
- echo "SUCCESS";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement