Advertisement
keysle

php Name Capture mysql piece

Sep 29th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php // shit code made by keysle ... if you're going to use it, at least go to and leave a post in his memory http://k8r.us
  2. if ( $_SESSION['permissionKey'] == $_POST['securityKey'] ){
  3. require('../../../secure/common_includes/dbConnect.php');
  4. $firstName = $_POST['firstName'];
  5. $lastName = $_POST['lastName'];
  6. $email = $_POST['email'];
  7. $IP = @$REMOTE_ADDR;
  8. mysql_query("INSERT INTO oneBigStory_nameCapture (firstName,lastName,email,IP) VALUES ($firstName,$lastName,$email,$IP)");
  9. $_COOKIE['beenHere'] = '1';
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement