Guest User

Untitled

a guest
Oct 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. echo '<form method="post" action="index.php">';
  2. echo '<input type="hidden" name="hoge" value="'.$_POST["hoge"].'">';
  3. echo '<button name="backbtn" type="submit">入力ページへ</button>';
  4. echo '</form>';
  5.  
  6. if (isset($_POST["backbtn"])) {
  7. $hoge = $_POST["hoge"];
  8. } else {
  9. $hoge = '';
  10. }
  11.  
  12. <form method="post" action="confirm.php">
  13. <input type="text" name="hoge" value="<?=$hoge?>">
  14. <button type="submit">確認</button>
  15. </form>
Add Comment
Please, Sign In to add comment