Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?
  2.  
  3. require_once ("web_data/auth.php");
  4.  
  5. echo '
  6. <form action="?tester" id="form" method="POST" name="form">
  7. Text Field<input type="textbox" name="p[text]"><br>
  8. <input type="submit" value="Submit">
  9. </form>
  10. ';
  11.  
  12.  
  13. $p = get_post_var("p");
  14. if(is_array($p)) {
  15.     insert_db_row("tester", $p);
  16.    
  17.  
  18. }
  19.  
  20. unset($_POST);
  21.  
  22. $single_order = get_db_array("SELECT * FROM tester", "id");
  23. foreach($single_order as $v){
  24.     echo $v['text'].'<br>';
  25. }
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement