Ho questa funzione javascript:
function inviadati(valore) {
//image progress
var par = window.parent.document;
var images = par.getElementById('dati');
var new_div = par.createElement('div');
var new_img = par.createElement('img');
new_img.src = 'indicator.gif';
new_div.appendChild(new_img);
images.appendChild(new_div);
http.open('get', 'inserisci.php?testo='+valore);
http.onreadystatechange = handleResponse;
http.send(null);
}
che recupera i dati da questo form HTML:
<form name="theformo">
<select id='word'>
<option value="cpu bella">m</option>
<option value="cpu brutta">f</option>
</select>
<input type="button" value="inserisci" onclick="inviadati(document.theformo.word.value)">
</form>
Al momento invia alla pagina inserisci.php il valore selezionato. Vorrei aggiungere anche il valore del form name. E' possibile? Grazie

Rispondi quotando