$_GET doesnt work
<p>Hey guys i've a little problem here...</p>

<p>why my $_GET doesnt work... </p>

<p>$_GET[id] or $_GET['id'] both of them not work...</p>

<p>here's my code...</p>

<pre><code>if(isset($_GET['aksi']) &amp;&amp; $_GET['aksi'] == 'forminput'){
    $ambilKategoriBarang = mysql_query("select * from kategori_barang");
    echo "&lt;div id='result'&gt;&amp;nbsp;&lt;/div&gt;"; // untuk nanti data calllbach hasil request akan di tampilkan disini
    echo "&lt;form id='frm_input'&gt;";
    echo "&lt;table cellpading='1' cellspacing='1' width='100%' border='0'&gt;";
    //pemberian atribut id sangat penting.. karena nilai yang di ambil dari fild tersebut nanti berdasarkan id tersebut
    echo "&lt;tr&gt;&lt;td width='30%'&gt;Kode Barang&lt;/td&gt;&lt;td&gt;&lt;input type='text' name='nim' id='nim'&gt;&lt;/td&gt;&lt;/tr&gt;";
    echo "&lt;tr&gt;&lt;td width='30%'&gt;No PO&lt;/td&gt;&lt;td&gt;&lt;input type='text' name='nopo' id='nopo' value='$_GET[idttb]'&gt;&lt;/td&gt;&lt;/tr&gt;";
    echo "&lt;tr&gt;&lt;td&gt;Jumlah Diterima&lt;/td&gt;&lt;td&gt;&lt;input type='text' name='nama' id='nama'&gt;&lt;/td&gt;&lt;/tr&gt;";
    echo "&lt;tr&gt;&lt;td&gt;Kategori Item&lt;/td&gt;&lt;td&gt;&lt;select name='tmplahir' id='tmplahir'&gt;
                            &lt;option value='0'&gt;- Kategori Barang-&lt;/option&gt;";
                            while($kategori = mysql_fetch_array($ambilKategoriBarang)){
                                echo "&lt;option value='$kategori[namaKategoriBarang]'&gt;$kategori[namaKategoriBarang]&lt;/option&gt;";
                            }
            echo "&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;";
    echo "&lt;tr&gt;&lt;td&gt;Status&lt;/td&gt;&lt;td&gt;&lt;select name='status' id='status'&gt;
    &lt;option value='Incindentil'&gt;Incindentil&lt;/option&gt;
    &lt;option value='Stock'&gt;Stock&lt;/option&gt;
    &lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;";
    echo "&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;input type='submit' value='kirim'&gt;&lt;/td&gt;&lt;/tr&gt;";
    echo "&lt;/table&gt;";
    echo "&lt;/form&gt;";
    exit();
}
</code></pre>

<p>as you can look..</p>

<p>$_GET['aksi'] &lt;--- works</p>

<p>but why the</p>

<p>$_GET['idttb'] &lt;--- Doesnt work</p>

<p>the url is</p>

<p>127.0.0.1/jualbeli/sistem/modul/mod_input.php?idpo=1&amp;idttb=1</p>

<p>anyone can help me please??</p>

<p>thanks before</p>

<p>============== OK LET ME EXPLAIN IT =============================</p>

<p>Here i have 4 php files..
1. proses.php
2. mahasiswa.php
3. mod_input.php
4. mod_listpo.php</p>

<p>and here's the source code</p>

<p>Note : there's no "mod_listpo" file because i only use this file to call mod_input.php</p>

<pre><code>function win1() {
    window.open('./modul/mod_input.php?idpo='+ document.getElementById('idpo').value +'&amp;&amp;idttb='+ document.getElementById('idttb').value,'Window1','menubar=no,width=540,height=360,toolbar=no');
}
</code></pre>

<p>here's the link code</p>

<pre><code>h t t p s://github.com/dammionx/code1
</code></pre>

<p>the flow is like this...</p>

<p>i using the mod_listpo.php to call mod_input.php using that code...</p>

<p>what i exactly want is, the mod_list.php can use $_GET to get the "idpo" and "idttb" value..</p>

<p>anyone can help me??</p>

<p>thanks before</p>
