Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/03/2006, 04:49
Avatar de MeXiCaN
MeXiCaN
 
Fecha de Ingreso: mayo-2004
Ubicación: Barcelona - España , Morelia - México
Mensajes: 162
Antigüedad: 19 años, 11 meses
Puntos: 0
Pero como ves si hago un shuffle de esto perderé la relación del id_NumEx con el de Resposta1, Respuesta2 y Respuesta3 no?

Código PHP:

<form action="corregir.php" method=post>
<?php do { ?>
  <table width="643" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="17" colspan="1" align="left" valign="top"><font size="2" face="Trebuchet MS"><?php echo  
      
$i $i+1?><?php echo "."?></font></td>
      <td width="619" colspan="-1" align="left" valign="top"><font size="2" face="Trebuchet MS"><?php echo $row_Recordset1['Pregunta']; ?></font></td>
    </tr>
    <tr>
      <td colspan="3"><font size="2" face="Trebuchet MS">
        <label></label>
        <label>
        <input name="<?php echo $row_Recordset1['id_NumEx'];?>" type="radio" value="<?php echo $row_Recordset1['Resposta1']; ?>">
        </label>
        <?php echo $row_Recordset1['Resposta1']; ?>
        </font></td>
    </tr>
    <tr>
      <td colspan="3"><font size="2" face="Trebuchet MS">
        <label></label>
        <label>
        <input name="<?php echo $row_Recordset1['id_NumEx'];?>" type="radio" value="<?php echo $row_Recordset1['Resposta2']; ?>">
        </label>
        <?php echo $row_Recordset1['Resposta2']; ?></font></td>
    </tr>
    <tr>
      <td colspan="3"><font size="2" face="Trebuchet MS">
        <label>
        <input name="<?php echo $row_Recordset1['id_NumEx']; ?>" type="radio" value="<?php echo $row_Recordset1['Resposta3']; ?>">
        </label>
        <?php echo $row_Recordset1['Resposta3']; ?></font></td>
    </tr>
    <tr>
      <td colspan="3"><hr align="center"></td>
    </tr>
    </table>
  <?php } while ($row_Recordset1 mysql_fetch_assoc($Recordset1)); ?>
  <table width="66" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><input name="Enviar" type="submit" value="Correct"></td>
    </tr>
  </table><?php echo $tema ?>
</form>
__________________
Un saludo, MeXiCaN :golpeado: :adios:

Poco es tanto, cuando poco necesitas. E.Bunbury

Siempre que haya una causa noble por la que luchar, siempre habrá ladrones que la apoyarán.