...

View Full Version : Need Help on redirection using PHP



coolguyraj
03-09-2009, 06:02 PM
Hi.

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

Thanks.

Leppy
03-09-2009, 06: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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum