Hello.
I have got something like this :
print("<form action=\"sprzedawca_dodaj_asortyment_step3.php\" METHOD=\"POST\">
<input type=hidden name=ile value=$ile_dodac>
<input type=hidden name=sd value=$sd>");
print("<table width=750 cellspacing=0 cellpadding=0 border=1>
<tr>
<td>Id.</td><td>Nazwa</td><td>Opis</td><td>Cena netto</td></tr>
");
///nazwa -> name / opis -> description / cena -> price///
///$sd & $ile_dodac are in URL
for($i=$sd;$i<$sd+$ile_dodac;$i++)
{
print("<tr><td>$i</td>
<td>nazwa<input type='text' name='nazwa_$i' value='' class=formularz></td>
<td>opis<input type='text' name='opis_$i' value='' class=formularz></td>
<td>cena<input type='text' name='cena_$i' value='' class=formularz></td>
</tr>");
}
print("</table<Br><input type=submit value='Dodaj asortyment.'</form>");
This code above is good. But I have no idea how to make multi sql insert script as this one above (not working) :
for($i=$sd;$i<$sd+$ile;$i++)
{
$nzw[$i]="$nazwa_$i";
///^^^here's my problem.
///Can anyone tell me how can I automaticaly
///change $nazwa_$i into "stuff_1" "stuff_2" etc...
print("$nzw[$i]");
}
Thanks in advance...