i heard to know what items that being posted by your server is to put this
Code:
<pre>
print_r($_POST); // print_r()
</pre>
snippet between the </form> and the </body>
and it does...
at my first page which before i click the submit button..the code brings this output..
Code:
Array
(
[Submit2] => SUBMIT
)
after i click the code shows this output:
Code:
Array
(
[ref] => 001
[pelapor] => gfbcbc
[tarikhRosak] => 01/01/2004
[noTag] => M01
[ID] => REF001/2004
[hariIni] => 01/11/2004
[front] => W
[submit] => SUBMIT
)
my problem is that the front should be not "W"...i chose B,E,R(anything except W) at the submit page but it keeps sending W.
Why?
how to fix this??
and i really confused,why at default,the combobox(where i choose W,E,,B and R) shows the W?it should display the "Please Choose Your ID"..
anyone can help me?
this is the html for the combobox (at the sumbit page)
Code:
<select name="noTag" size="1" >
<option value="0">Choose Major ID </option>
<?php
//----------------------------------------------------
// Access Data From MySQL
// TABLE : tPartMajor
//----------------------------------------------------
$query2 = "Select idMajor from ".$DBprefix." tPartMinor where idmajor <>'' group by idmajor order by idmajor";
$mesin = mysql_query($query2);
while ($dbq = mysql_fetch_array($mesin)) {
echo("<OPTION VALUE=$dbq[idMajor] selected>$dbq[idMajor]</option>\n");
$ayam=$dbq[idMajor];
$depan=substr("$ayam",0,1);
}
?>
</select>
pls help..
i can't find the problem