How can i submit the data to the save.php but show another page instead, every time i click it goes to the save.php rather than the display.php
form name="theform" action="save.php" id="addENT" method="POST">
<div align id="Title-Name"><b>Input:</b></div>
<div id="login-box-field"><textarea class="Title-Input" type="text" name="Title-Input"></textarea></div>
The submit redirects the page to save.php
. All you need to do is to redirect to display.php
back in save.php
after you're done with the processing.
See How to make a redirect in PHP? for more details.
header("Location: display.php");
exit; //Stop executing further.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.