Guest User

Untitled

a guest
Dec 8th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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'] . "')";
Add Comment
Please, Sign In to add comment