Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = "";
- $dbname = "ZIP";
- $dbusername = "";
- $dbpassword = "";
- $link = new PDO("mysql:host=$dbhost;dbname=$dbname",$dbusername,$dbpassword);
- $zip = htmlspecialchars($_POST['zip']);
- $email = htmlspecialchars($_POST['email']);
- $statement = $link->prepare("INSERT INTO ZIP(ZIP,EMAIL)
- VALUES(:zip, :email)");
- $statement->bindParam(':zip', $zip);
- $statement->bindParam(':email', $email);
- $statement->execute();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement