Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically calling a file(page) from a function in current file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello everyone,

Here's my problem:
I have a delete function in editstaff.php, the deletion works but rather than going to the listall.php file to list all the staff, it just shows a blank form.

So basically after I am done the deletion I want to be able to list all the staff, but this is done on another file(page). Any help would be greatly appreciated.
Thanks!
 
After your successful deletion, redirect using the "header" built-in function like this:

header("Location: /liststaff.php");

that's assuming your liststaff.php script is in the document root of your webserver.

HTH.
Hardy Merrill
Mission Critical Linux, Inc.
 
I'm having the same problem, but I'm afraid that I don't understand the answer. could u clarify for me please??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top