Redirect To Previous Page.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tmaiden
Forum Commoner
Posts: 64
Joined: Fri Feb 24, 2006 3:15 pm
Location: Philadelphia
Contact:

Redirect To Previous Page.

Post by tmaiden »

I have a link on my page that deletes a row from a table by sending the primary key to another page where the delete script is ran.
Once the delete script is ran, the page tells the user that the row was deleted. How can I send the user back to the previous page instead of telling them that the row was deleted. I would like once the row is deleted, that the user be sent back to the previous page and the data on that page to be refreshed.

Thanks again for everyones help!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

header('Location: ...') and $_SERVER['HTTP_REFERRER'] ?
Post Reply