1

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>
user3364498
  • 489
  • 1
  • 9
  • 14

1 Answers1

1

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.

Basically

header("Location: display.php");
exit; //Stop executing further.
Community
  • 1
  • 1
Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308