Jump to content

remove a message printed on screen


devilinc

Recommended Posts

i have a script which deletes users and if user is deleted it just prints A message saying user is removed but, even if i refresh the page after that the message still remains.....what do i do?

if(isset($_GET['user_delete']) && isset($_GET['module_delete'])){
	$user_delete = $_GET['user_delete'];
	$module_delete = $_GET['module_delete'];
	$query = mysql_query("DELETE FROM module_assign WHERE module_assign.user_id = $user_delete AND module_assign.module_id = $module_delete");
	//header( 'refresh: 3; url=admin.php' );
	echo "<font color ='red'>User has been unassigned</font>";
}

 

there is no point in doing the header redirect(i cant do it as headers already send it seems) because even if the page refreshes manually, my message doesnt go off....what do i do?

 

 

Link to comment
https://forums.phpfreaks.com/topic/219895-remove-a-message-printed-on-screen/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.