I want to pass Sub Window the value with PHP and JavaScript.

From: Date: Fri, 06 Apr 2007 05:00:54 +0000
Subject: I want to pass Sub Window the value with PHP and JavaScript.
Groups: php.general 
Request: Send a blank email to php-general+get-252134@lists.php.net to get a copy of this message
Hello I say Napura. In the code shown below "no" with PHP&JavaScript Hajime.php passes it to kekka.php. For "<a href='Javascript:xsubmit($k)'>" though the data of "no" extends without trouble "_ blank target =" is added. Data cannot be received though new Sabwindow opens when assuming "<a href='Javascript:xsubmit($k)'target='_blank'>". The method doesn't hit on easily though it wants to open a sub-window by all means and to display it. "_ blank target =" is stopped. In JavaScript window.open("kekka.php","SUBF") The value doesn't extend still though it made. It would be greatly appreciated if it could advise. My best regards. In the server environment, it is LINUX and PHP is PHP 4.3.9. The experimented client environment is peel WindowsXPSP2, and IE6. ******************************** hajime.php <SCRIPT TYPE="text/javascript"> <!-- function xsubmit(no) { mainform=top.window.document.nn_form; mainform.param.value = no; mainform.action ="kekka.php"; mainform.submit(); // --> <form name="nn_form" method="POST"> ・ ・ <?php //echo ("<td height='30' align='center' width='10'><nobr><font size='2'><a href='Javascript:xsubmit($k)'>答え</a></td>\n"); ・ ・ ?> <input type="hidden" name="param" value="" /> kekka.php <?php $tet="param"; $Rno=$_POST[$tet]; ?>

« previous php.general (#252134) next »