Dear all, Refering to my first e-mail with the same subject; I've reworked the code to this:
But the only problem is; Nothing is written into the mysql database! And there are no error displayed.. Can someone have a look at my code? <? $_REQUEST["submit"]=isset($_REQUEST["submit"])?$_REQUEST["submit"]:""; if($_REQUEST['submit']!="") { for($i=0;$i<count($_POST['test1[]']);$i++) { $query="INSERT INTO test (test1, test2) VALUES ('$_POST['test1']','$_POST['test2']')"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); } } ?> <form name="form1" method=post id=form1 enctype=multipart/form-data action="<? $_SERVER['PHP_SELF']?>"> <? for ($i=1; $i<=2; $i++) { echo "# $i<input type=\"text\" name=\"test1[]\"><br>"; echo "# $i<input type=\"text\" name=\"test2[]\"><br>"; } ?> <input type=submit name=submit value=submit> </form> Thanks very much, Frank