Guest User

Untitled

a guest
May 9th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. PHP Security - $_POST - Injection
  2. <?
  3. if ($_POST['submit']=="1"){
  4.  
  5. $input = $_POST['input'];
  6. echo "echo the input: ".$input."<br/>";
  7. }
  8. ?>
  9. <form action="<? $PHP_SELF;?>" method="POST">
  10. <input type="text" name="input" value="<? echo $_POST['input'];?>"/>
  11. <input type="hidden" name="submit" value="1"/>
  12. <input type="submit" value="submit"/>
  13. </form>
  14.  
  15. ";unset('index.php');
Advertisement
Add Comment
Please, Sign In to add comment