mengambil nilai post dalam satu modul yg sama ($_POST)

mengambil nilai post dalam satu modul yg sama



echo "<form method=POST action='?".MagisterEncrypt('mm=baak_ips')."'>";
echo "<table>
<tr><td>semester</td><td>:<select name=semeterpilih><option value=0>--semester--</option>";
$id=mysql_query("SELECT * FROM $AppSemester ");
$id_smtr=mysql_fetch_array($id);

while ($idsmtr=mysql_fetch_array($id))
{
echo "<option value='$idsmtr[id_smtr]'> $idsmtr[ket_smtr] </option> ";

}
echo "</td><th colspan=2><input type=submit name=pilih value='Tampil'></th></tr></table></form>";

if (isset($_POST['pilih']))
{
$smtr99 =$_POST['semeterpilih'];

echo "y=$smtr99";
}

Perhatikan bagian yg berwarna ya.. 
hehehehehe...

Subscribe to receive free email updates:

0 Response to "mengambil nilai post dalam satu modul yg sama ($_POST)"

Post a Comment