0
我是否有像這樣的輸入,但這2個輸入會重複多次。因此,它可能是:文本字段數組和while循環
<input name="Gpodaciogolubu[]" type="text">
<input name="Gpodaciogolubu_godina[]" type="number">
<input name="Gpodaciogolubu[]" type="text">
<input name="Gpodaciogolubu_godina[]" type="number">
<input name="Gpodaciogolubu[]" type="text">
<input name="Gpodaciogolubu_godina[]" type="number">
...
是否可以使用,同時或foreach循環的同時獲得這兩個值,並喜歡將它插入兩個數據庫:
"INSERT INTO database (field1, filed2) VALUES ('$_POST["Gpodaciogolubu"]','$_POST["Gpodaciogolubu_godina"]')"
我編碼在PHP/MySQL的
此問題不完整。你使用哪種語言編碼?你在說什麼重複? –
我添加了更多信息。我希望它可以幫助 – FosAvance
我將標籤更改爲人們實際遵循的標籤。這應該有所幫助。 –