hi,please help me.i am trying to print an alert box using the following code,but the page is redirecting to myaccount.php before the java script execution.
here is the code:
{
print "<script type=\"text/javascript\">";
print "alert('request sent')";
print "</script>";
}header("Location:myaccount.php");
if i do the following,i am able to print the javascipt alert.
{
print "<script type=\"text/javascript\">";
print "alert('request sent')";
print "</script>";
}
//header("Location:myaccount.php");
seems the php gets exectingbefore the javascript code.
i want to print alert box ,then the page should be redirected..please help me!

