View Full Version : Need Help on redirection using PHP

03-09-2009, 07:02 PM

I have a page that displays employee data(display.php)

at the bottom of the page i have "add new employee button" this is a form for creating a new employee record.(newemployee.php)

now i want the form(newemployee .php) to redirected back to display.php after the new employee form is submitted.

how can i do this?

I tried using
<form name="" method="post" action="display.php">

after the newemployee.php page is submitted i get a blank page.But the browser address bar shows that its on newemployee.php


03-09-2009, 07:53 PM
Submit your form to newemployee.php then in this file add the following

Header("Location: display.php");

More info at: http://us.php.net/header