hi,
i'd like to redirect to another page after record added with a condition.
I try with this code in ater record added:
echo "<script>alert('ATTENTION1: Value of apridistinta is : ".$_REQUEST["apridistinta"] ."')</script>";
if ($_REQUEST["apridistinta"]=='S') {
if (!$inline){
if (STRVAL($values['veas1'])<>0){
echo "<script>alert('ATTENTION2: Redirect ')</script>";
header("Location: distinte_edit.php?editid1=" . $iddistinta);
exit();
};
};
};
when the value of $_REQUEST["apridistinta"] is <> 'S' the alert ATTENTION1 is displayed.
when the value of $_REQUEST["apridistinta"] is == 'S' no alert is displayed!!!! but only open the redirected page.
In my progect i need some alerts before redirect to the other page.
Any solutions?
Thanks