ec Posted March 27, 2008 Share Posted March 27, 2008 See whenever you complete a query and you request for the result to be printed; if($result){ print("The teacher with Teacherid ".$teacherid." has been deleted"); is there anyway of printing it to another page such as deletesuccessful.php?? Link to comment https://forums.phpfreaks.com/topic/98222-results/ Share on other sites More sharing options...
Barand Posted March 27, 2008 Share Posted March 27, 2008 as long as your script has not sent any output yet if($result){ header("location: deletesuccessful.php?id=$teacherid"); } Link to comment https://forums.phpfreaks.com/topic/98222-results/#findComment-502576 Share on other sites More sharing options...
discomatt Posted March 27, 2008 Share Posted March 27, 2008 As an alternative, sessions are a good way of passing information from one page to another without the user being able to interfere (beyond blocking cookies and request variables... but then i'm pretty passing an error would be the least of your worries) Link to comment https://forums.phpfreaks.com/topic/98222-results/#findComment-502579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.