안녕하세요~!! <br>기본 PHP 질문 드립니다. 설문조사 폼입니다. 지금 올린 코드는 두번째 .php 페이지 이구요.<br>두번째 페이지 하단에 "previous" 버튼과 "next" 버튼을 만들어서 "previous" 버튼을 눌렀을시 이전 페이지로 넘어가는 코드를 어떻게<br>집어 넣어야 할지 모르겠네요 ㅠㅠ php 를 이용해서 이전 페이지로 가는걸 하고 싶습니다.<br><br><?php <br>// session starts here<br> session_start();<br>?><br><br><html><br><head><br> <title>Multi-page Survey Application</title><br> <!--<link rel="stylesheet" href="style.css" />--><br></head><br><body><br> <h3>Please enter your name and age!</h3><br><?php<br> if ($_SERVER['REQUEST_METHOD'] == 'POST') {<br> if (isset($_SESSION['part']) && ($_SESSION['part'] == 1)) {<br> if (isset($_POST['fullName'])) {<br> $_SESSION['fullName'] = $_POST['fullName'];<br> }<br> if (isset($_POST['age'])) {<br> $_SESSION['age'] = $_POST['age'];<br> }<br> if (isset($_POST['student'])) {<br> $_SESSION['student'] = $_POST['student'];<br> }<br> $_SESSION['part'] = 2;<br> form_2();<br> } <br> } else {<br> $_SESSION['part'] = 1;<br> form_1();<br> }<br>?><br><br> <form method="POST" action="./question2.php"><br> <div for="fullName"><br> <label for="fullName">Full Name:</label><br> <input type="text" id="fullName" name="fullName" value="" placeholder="Your Name" tabindex="1" autofocus="autofocus"></input><br> </div><br><br> <div for="age"><br> <label for="age">Your Age:</label><br> <input type="text" id="age" name="age" value="" placeholder="Your Age" tabindex="2" autofocus="autofocus"></input><br> </div><br><br> <div for="student"><br> <label for="student">Are you a student?</label><br> <select name="student"><br> <option value=""></option><br> <option value="fullTime">Yes, Full Time</option><br> <option value="partTime">Yes, Part Time</option><br> <option value="noStudent">No</option><br> </select><br> <br><br><br> <input type="submit" value="previous" /><br> <input type="submit" value="next" /><br> </form><br></body><br></html><br>