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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.