Note that there are some explanatory texts on larger screens.

plurals
  1. POSend Data from Popup to Main form
    text
    copied!<p>i have a popup window codeigniter, i want send IDSatker to my main form in form registration member</p> <p>here's my code</p> <pre><code>&lt;?php if (count($ListSatker) &gt; 0) { echo "&lt;table border='1' cellspacing='0' cellpadding='3' width='100%'&gt;\n"; echo "&lt;tr valign='top'&gt;\n"; echo " &lt;th&gt;&lt;div align='center'&gt;ID&lt;/th&gt;\n &lt;th&gt;&lt;div align='center'&gt;Inst SatkerKD&lt;/th&gt; &lt;th&gt;&lt;div align='center'&gt;Inst SatkerInduk&lt;/th&gt; &lt;th&gt;&lt;div align='center'&gt;Nama Satker&lt;/th&gt; &lt;th&gt;&lt;div align='center'&gt;Status&lt;/th&gt; &lt;th&gt;&lt;div align='center'&gt;Pilhan&lt;/th&gt;\n"; echo "&lt;/tr&gt;\n"; foreach ($ListSatker as $key =&gt; $list) { echo "&lt;tr valign='top'&gt;\n"; echo "&lt;td&gt;&lt;div align='center'&gt;" . $list['IDSatker'] . "&lt;/td&gt;\n"; echo "&lt;td&gt;&lt;div align='center'&gt;" . $list['inst_satkerkd'] . "&amp;nbsp;&lt;/td&gt;\n"; echo "&lt;td&gt;&lt;div align='center'&gt;" . $list['inst_satkerinduk'] . "&lt;/td&gt;\n"; echo "&lt;td&gt;" . $list['inst_nama'] . "&lt;/td&gt;\n"; echo "&lt;td&gt;" . $list['inst_akronim'] . "&lt;/td&gt;\n"; echo "&lt;td&gt;&lt;div align='center'&gt;"; echo anchor('user/' . $list['IDSatker'], 'Pilih'); echo "&lt;/td&gt;\n"; } echo "&lt;/table&gt;"; } ?&gt; </code></pre> <p>i will send IDSatker when i clik "Pilih" to Main Form in apllication/view</p> <pre><code>&lt;input name="inst_satkerkd" type="text" size="30" value="" /&gt;&lt;?php echo anchor_popup('user/popup', 'Satker', $atts); ?&gt; </code></pre> <p>thank's before</p>
 

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