<form method="POST" action="new1.php">
<input type="checkbox" name="kodsubjek[]"
value="DDC1001">DDC1001<br>
<input type="checkbox" name="kodsubjek[]"
value="DDC1002">DDC1002<br>
<input type="checkbox" name="kodsubjek[]"
value="DDC1003">DDC1003<br>
<input type="checkbox" name="kodsubjek[]"
value="DDC1004">DDC1004<br>
<input type="hidden" name="matrik" value="AD001">

<input type="Submit" name="submit" value="submit">
</form>

i want to create query :

$query = " INSERT INTO daftar (matrik,kodsubjek)
VALUES ('{$_POST['matrik']}','{$_POST[kodsubjek[$i]}')
";



the problem is at 
'{$_POST[kodsubjek[$i]]}'

i dont know how to rewrite the array with $_POST?
PLEZ HELP ME
thank u in advance




                
____________________________________________________ 
Yahoo! Singapore Answers 
Real people. Real questions. Real answers. Share what you know at 
http://answers.yahoo.com.sg

Reply via email to