|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Jul 2002
Messaggi: 2731
|
[PHP] passare dati con checkform
Ciao raga sto provando a passare dei dati ad una pagina con checkbox ma stranamente la pagina success visualizza solo l'ultimo valore.
Con un codice del genere... Codice:
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type ="checkbox" name="check[]" value="<?php echo $row_rs_utenti['user_id']; ?>"> </td>
<td><input name="name" type="hidden" id="name" value="<?php echo $row_rs_utenti['name']; ?>" /></td>
<td><input name="username" type="hidden" id="username" value="<?php echo $row_rs_utenti['username']; ?>" /></td>
</tr>
<tr>
<td><input type ="checkbox" name="check[]" value="<?php echo $row_rs_utenti['user_id']; ?>"> </td>
<td><input name="name" type="hidden" id="name" value="<?php echo $row_rs_utenti['name']; ?>" /></td>
<td><input name="username" type="hidden" id="username" value="<?php echo $row_rs_utenti['username']; ?>" /></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Invia" />
</label></td>
</tr>
</table>
Mi date un aiutino? |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Nov 2003
Messaggi: 980
|
Prova con
Codice:
<tr>
<td><input type ="checkbox" name="check[]" value="<?php echo $row_rs_utenti['user_id']; ?>"> </td>
<td><input name="name[]" type="hidden" id="name" value="<?php echo $row_rs_utenti['name']; ?>" /></td>
<td><input name="username[]" type="hidden" id="username" value="<?php echo $row_rs_utenti['username']; ?>" /></td>
</tr>
<tr>
<td><input type ="checkbox" name="check[]" value="<?php echo $row_rs_utenti['user_id']; ?>"> </td>
<td><input name="name[]" type="hidden" id="name" value="<?php echo $row_rs_utenti['name']; ?>" /></td>
<td><input name="username[]" type="hidden" id="username" value="<?php echo $row_rs_utenti['username']; ?>" /></td>
</tr>
<tr>
<td><input type ="checkbox" name="check[]" value="<?php echo $row_rs_utenti['user_id']; ?>"> </td>
<td><input name="name[]" type="hidden" id="name" value="<?php echo $row_rs_utenti['name']; ?>" /></td>
<td><input name="username[]" type="hidden" id="username" value="<?php echo $row_rs_utenti['username']; ?>" /></td>
</tr>
|
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Jul 2002
Messaggi: 2731
|
Ho provato anche così ma quando li invio come li richiamo nell'altra pagina?
Ho provato: Codice PHP:
ps. ho scritto un codice fittizio xkè nn sono a casa e non ho con me quello effettivamente usato. |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 05:02.



















