1st page .html
window.opener.top.location.href="2nd page.php?vars=" + temp + "&varr=" +temp1;
self.close();
2nd page.php
if(mysql_num_rows($result) > 0)
{
print "<script>";
print " window.opener.top.location.href='3rd page.php'";
print "</script>";
}
else
{
print "<script>";
print " window.location='1st page.html'";
print "</script>";
}
in this code i'm passing javascript variable to 2nd page.php.when i execute it's opening second page with the values i passed but my if loof is not getting executed in 2nd page.because i need the 3rd page content should displayed in this page.