Originariamente inviato da StarFinger
non ho capito bene quello che ti succede.
1 ) non ricevi il valore del input radio ?
2 ) o ricevi un valore errato ?
codice:
<form id="listingMain" name="listingMain" method="post" action="PAGINA_DATI.PHP" onSubmit="return submitForm(this)">
<table width="65%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>campotesto1-ita</td>
<td><input type='text' value='valorenuovo' size='' name='1'></td> </tr> <tr> <td>campodrop-ita1</td>
<td><select name='2'>
<option value="no ">no </option>
<option value="si " selected="selected">si </option>
<option value="forse" >forse</option>
</select></td> </tr>
<tr> <td>textaarea1it</td>
<td><textarea cols='8' rows='6' name='9'>eeeer</textarea></td> </tr>
<tr> <td>radio</td>
<td>
<input type='radio' name='10' value='X ' >X
<input type='radio' name='10' value='Y' checked="checked">Y</td> </tr>
<tr> <tr> <td>
<input name="Submit" type="submit" class="blue_buttons" value="SALVA »" /> </td>
<td></td> </tr>
</table>
</form>
Se faccio un var_dump($_POST) ha sempre questo output:
codice:
array(5) { [1]=> string(11) "valorenuovo" [2]=> string(3) "sì" [9]=> string(5) "eeeer" [10]=> string(1) "Y" ["Submit"]=> string(8) "SALVA »" }