Note that there are some explanatory texts on larger screens.

plurals
  1. POradio button value pass undefined in parent page
    primarykey
    data
    text
    <p>i am using tow pagge one is parent page and other is child window page for pass the radio button value from child window page to parent page but i have getting error undefined in parent page text fields...</p> <p><strong>parent page</strong></p> <pre><code>&lt;form method="post" action="" name="f1"&gt; &lt;table border=0 width=550&gt; &lt;tr&gt; &lt;td&gt; Your Name &lt;input id="OPRID" name="OPRID" type="text" value="&lt;?php echo (isset($_POST ['OPRID']) ? $_POST['OPRID'] : ""); ?&gt;" /&gt; &lt;a href="javascript:void(0);" name="My Window Name" title=" My title here " onClick="window.open ('popwindow.php','Ratting','width=650,height=550,0,status=0,scrollbars=1');" /&gt; Click here to open the child window &lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; **child window page** &lt;html&gt; &lt;head&gt; &lt;script langauge="javascript"&gt; function post_value(){ opener.document.f1.OPRID.value = document.frm.OPRID.value; self.close(); } &lt;/script&gt; &lt;form name="frm" method="post" action=''&gt; &lt;tr&gt; &lt;td&gt;&lt;div align="center"&gt; &lt;input type="radio" name="OPRID" id="radio" value="&lt;?php echo $objResult ["OPRID"];? &gt;" /&gt;&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div align="center"&gt;&lt;?=$objResult["OPRID"];?&gt;&lt;/td&gt; &lt;td&gt;&lt;div align="center"&gt;&lt;?=$objResult["OPRDEFNDESC"];?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;? } ?&gt; &lt;/table&gt; &lt;br /&gt; &lt;tr&gt; &lt;td&gt;&lt;div align="center"&gt; &lt;input type="button" value='Submit' onclick="post_value();"&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/form&gt; but in text fields i have getting undefined error. </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload