I want to display the javascript alert and the redirect using php. The logical error is that it won't display the javascript alert.
here's my code:
if($sql_update==true){
echo "<script type='text/javascript'>alert('Updated');</script>";
header("location:?tag=student_entry&opr=upd&rs_id=".$_POST['stud_id_txt']."");
}