Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="POST">
- <input type="hidden" name="x">
- <input type="submit" value="Go to Google">
- </form>
- <?php
- if(isset($_POST['x'])){
- $database->insert_user_id;
- header('Location: enquete/page1.php');
- }
- ?>
- function insert_user_id(){
- $sql = "INSERT INTO user (user_id, name, email, comment) VALUES (DEFAULT, NULL, NULL, NULL)";
- $sth = $this->pdo->prepare($sql);
- $sth->execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement