Advertisement
Mr_MitchW

Untitled

Jun 24th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <form action="enquete/page1.php" 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 "
  15.         . "(user_id)"
  16.         . "VALUES (user_id) ";
  17.             $sth = $this->pdo->prepare($sql);
  18.             $sth->execute();
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement