Advertisement
Mr_MitchW

Untitled

Jun 24th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <form method="POST">
  2.     <input type="hidden" name="x">
  3.     <input type="submit" value="Go to Google">
  4. </form>
  5. <?php
  6.     if(isset($_POST['x'])){
  7.         $database->insert_user_id;
  8.         header('Location: enquete/page1.php');
  9.     }
  10. ?>
  11.  
  12.  
  13.     function insert_user_id(){
  14.             $sql = "INSERT INTO user (user_id, name, email, comment) VALUES (DEFAULT, NULL, NULL, NULL)";
  15.             $sth = $this->pdo->prepare($sql);
  16.             $sth->execute();
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement