Guest User

Untitled

a guest
Dec 8th, 2017
133
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.  
  4. function filter_tags($string){
  5. return str_replace(array("<", ">"), array("&lt;", "&gt;"), $string);
  6. }
  7.  
  8. $query = "INSERT INTO comments (name, email, quote, hinzugefuegt, ip_adress) VALUES ('" . filter_tags($_POST['vName']) . "', '" . filter_tags($_POST['eMail']) . "', '" . filter_tags($_POST['q17']) . "', NOW(), '" . $_SERVER['REMOTE_ADDR'] . "')";
RAW Paste Data