hi... i think i hav to explain my problem clearler..
i have 2frames named topFrame and mainFrame....
after modifying my codes...using parent.mainFrame.location.href...
<input type="button" name="indeks" value=http://www.webdeveloper.com/forum/archive/index.php/"<?php $d=$c+1; echo "$d"; ?>" CLASS="colornormal" ONCLICK="parent.mainFrame.location.href='http://localhost/Jpj_Test/frame/indeks_directpage.php?val=<?=$c;?>';">
as the code show teh button will redirect me into another php script named indeks_directpage.php.In this script i will do redirection to my desired html page..
The code in indeks_directpage.php are as follow
<?php
session_start();
$i=$val;
echo "here can display...........";
?>
<SCRIPT LANGUAGE="JavaScript">
parent.mainFrame.location.href = 'http://localhost/Jpj_Test/frame/Ques_<?php echo "$Rand[$i]"; ?>.php'
</SCRIPT>
i have even tried location.replace= 'http://localhost/Jpj_Test/frame/Ques_<?php echo "$Rand[$i]"; ?>.php'
but it didnt seems to work...
OK..now the real problem is in the first redirection to indeks_directpage.php is not a problem since i can see the echo "can see here" for a few miliseconds in the mainFrame....
but after that a blank page appear instead of the html page i desired...
BUT if i press back button in the web browser twice i can get my html page display nicely there!!!
hmmmmmm....
i think it must hav display the html page back to where i click the button...
any idea how to solve this...please advise...
any suggestion is highly appreciated...
thanx...
i have 2frames named topFrame and mainFrame....
after modifying my codes...using parent.mainFrame.location.href...
<input type="button" name="indeks" value=http://www.webdeveloper.com/forum/archive/index.php/"<?php $d=$c+1; echo "$d"; ?>" CLASS="colornormal" ONCLICK="parent.mainFrame.location.href='http://localhost/Jpj_Test/frame/indeks_directpage.php?val=<?=$c;?>';">
as the code show teh button will redirect me into another php script named indeks_directpage.php.In this script i will do redirection to my desired html page..
The code in indeks_directpage.php are as follow
<?php
session_start();
$i=$val;
echo "here can display...........";
?>
<SCRIPT LANGUAGE="JavaScript">
parent.mainFrame.location.href = 'http://localhost/Jpj_Test/frame/Ques_<?php echo "$Rand[$i]"; ?>.php'
</SCRIPT>
i have even tried location.replace= 'http://localhost/Jpj_Test/frame/Ques_<?php echo "$Rand[$i]"; ?>.php'
but it didnt seems to work...
OK..now the real problem is in the first redirection to indeks_directpage.php is not a problem since i can see the echo "can see here" for a few miliseconds in the mainFrame....
but after that a blank page appear instead of the html page i desired...
BUT if i press back button in the web browser twice i can get my html page display nicely there!!!
hmmmmmm....
i think it must hav display the html page back to where i click the button...
any idea how to solve this...please advise...
any suggestion is highly appreciated...
thanx...