Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "Form";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $Email = $_POST["Email"];
- $FirstName = $_POST["FirstName"];
- $LastName = $_POST["LastName"];
- $Password = $_POST["Password"];
- $sql = "INSERT INTO Data (FirstName, LastName, Email, Password)
- VALUES ('$FirstName', '$LastName', '$Email', '$Password')";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement