I want to echo a message before redirecting.the message gets displayed but it disappears very soon.is it possible to increase the time of display before redirect.this is my code
if($result)
{echo "Data has been edited";
redirect('edit.php');
}
else
{
echo "<p>cannot update your data<p>";
}
function redirect($loc){
echo "Reset done Succesfully!";
echo "<script>window.location.href='".$loc."'</script>";
}