I have a message that I would like to show by using alert()
$message = "No result found for the following info:Name: ".$FullName."IC: ".$ID." in database.";
echo "<script>alert('".$message."'); window.history.back();</script>";
This is working but if I add a new line '\n' into the message
$message = "No result found for the following info:\nName: ".$FullName."\nIC: ".$ID." in database.";
it will not show out the pop out message. What is the problem?