salve, ho dei campi costruiti dinamicamente con javascript.
invio tramite POST tutti i campi a send.php
il problema è che le var dei campi in questione sono vuote...cioè con quale nome posso inviare i campi javascript allo script php che invii la email?
inoltre il numero di questi capi è variabile
un array forse? ma come?
grazie
codice:
while (puntatore<=lung) {
if (string.charAt(puntatore) == "@") {
cont++;
document.write('<tr><td align="right">Titolo</td>');
puntatore++;
subpuntatore=puntatore;
while (string.charAt(puntatore) != "@") puntatore++;
document.write('<td align="right"><input type="text" name="Articolo'+cont+'" size="20"');
document.write('value="'+string.substring(subpuntatore, puntatore)+'" onFocus="this.blur()">');
puntatore++;
subpuntatore=puntatore;
while (string.charAt(puntatore) != "@") puntatore++;
prezzo=parseFloat(string.substring(subpuntatore, puntatore));
document.write('<input type="hidden" name="Prezzo'+cont+'" value="'+prezzo+'"></td>');
puntatore++;
subpuntatore=puntatore;
while ((string.charAt(puntatore) != "@") && (string.charAt(puntatore) != "#")) puntatore++;
quantit=parseInt(string.substring(subpuntatore, puntatore));
document.write('<td align="right">Quantità</td>');
document.write('<td align="right"><input type="text" name="Quant'+cont+'" size="5" ');
document.write('value="'+quantit+'" onChange="update(this.form)" maxlength="3"></td>');
totale+=parseInt(prezzo*quantit*100);
document.write('<td align="right">Totale</td>');
document.write('<td align="right">€<input type="text" name="Totale'+cont+'" size="12" ');
document.write('value="'+punteggiatura(parseInt(prezzo*quantit*100))+'" style="text-align: right" onFocus="this.blur()"></td>');
puntatore--;
document.write('</tr>');
}
puntatore++;
}
}