Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/03/2013, 08:36
Avatar de tquezada
tquezada
 
Fecha de Ingreso: febrero-2013
Ubicación: Santiago
Mensajes: 196
Antigüedad: 11 años, 2 meses
Puntos: 8
Respuesta: guardar checkbox al recargar un formulario

PERDON PERDON me he equivocado de codigo este es
Código HTML:
Ver original
  1. <form action="" method="post" name="form">
  2. <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  3. <tr>
  4. <td class="txt9pt">
  5. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="txt9pt">
  6.   <tr>
  7.     <td><h2 class="txt9pt">Cuestionario Consultas Cotidianas</h2></td>
  8.   </tr>
  9.   <tr>
  10.     <td class="txt9pt">
  11.       <p class="txt9pt">Porque estamos empeñados en que todas nuestras áreas, tiendas y locales se conozcan, te entregamos este breve cuestionario, que tiene como fin conocer tus necesidades y consultas cotidianas, para luego desarrollar una herramienta informativa, de permanente apoyo para ti y tus colaboradores.<br /><br />
  12.         Tienes plazo para responder hasta el <strong>miércoles 27 de marzo</strong>. Es primordial que nos entregues tus inquietudes, ya que con ellas lograremos entregarte un material completo e íntegro.<br /><br />
  13.         ¡ No esperes que otra tienda o local responda por tí !   Tal vez sus consultas no te representan.
  14.     </p>
  15.    
  16.     <font style="font-size:24px; font-family:Verdana, Geneva, sans-serif; color:#09F"><? echo $msj2?></font>
  17.     <br />
  18.     <br />
  19.    
  20.     <p>&nbsp;</p></td>
  21.   </tr>
  22. </td>
  23. </tr>
  24.   <tr>
  25.     <td><table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
  26.   <tr>
  27.     <td colspan="3"><h3 class="txt9pt"><strong>Item I</strong><div align="center" class="txt9pt" style="color:#F00"><? echo $mensaje3?></div></h3></td>
  28.     </tr>
  29.   <tr>
  30.     <td height="20" colspan="3" align="center" class="txt9pt"><strong>¿Cuál de estas necesidades o dudas has tenido tú o tu equipo? Marque la(s) opcion(es) de su(s) necesidad(es)
  31.     </strong></td>
  32.     </tr>
  33.   <tr>
  34.     <td width="2%" height="26" class="txt8pt">1.</td>
  35.     <td width="42%" class="txt8pt">Problemas con un suministro(Agua, Luz, Cañerias)</td>
  36.     <td width="56%" class="txt8pt"><input name="opc[]" type="checkbox" value="1"  <?php echo !empty($_POST['opc[]']) ? 'checked="checked"' : ''; ?>/>
  37.       </td>
  38.   </tr>
  39.   <tr>
  40.     <td height="32" class="txt8pt">2.</td>
  41.     <td class="txt8pt">Corte de Internet</td>
  42.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="2" /></td>
  43.   </tr>
  44.   <tr>
  45.     <td height="32" class="txt8pt">3.</td>
  46.     <td class="txt8pt">Precencia de prensa en tu tienda o local</td>
  47.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="3" /></td>
  48.   </tr>
  49.   <tr>
  50.     <td height="32" class="txt8pt">4.</td>
  51.     <td class="txt8pt">Deterioro del material POP</td>
  52.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="4" /></td>
  53.   </tr>
  54.   <tr>
  55.     <td height="32" class="txt8pt">5.</td>
  56.     <td class="txt8pt">falta o Sobrestock de productos</td>
  57.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="5" /></td>
  58.   </tr>
  59.   <tr>
  60.     <td height="32" class="txt8pt">6.</td>
  61.     <td class="txt8pt">Solicitud de beneficios</td>
  62.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="6" /></td>
  63.   </tr>
  64.   <tr>
  65.     <td height="32" class="txt8pt">7.</td>
  66.     <td class="txt8pt">Caida de sistema de cajas</td>
  67.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="7" /></td>
  68.   </tr>
  69.   <tr>
  70.     <td height="32" class="txt8pt">8.</td>
  71.     <td class="txt8pt">Falta de personal</td>
  72.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="8" /></td>
  73.   </tr>
  74.   <tr>
  75.     <td height="32" class="txt8pt">9.</td>
  76.     <td class="txt8pt">Dudas y consultas sobre liquidaciones o contratos</td>
  77.     <td class="txt8pt"><input name="opc[]" type="checkbox" value="9" /></td>
  78.   </tr>
  79.   <tr>
  80.     <td rowspan="2" valign="top" class="txt8pt">10.</td>
  81.     <td height="32"  valign="top" class="txt8pt">Si quieres dar a conocer otra necesidad, detállala aquí:</td>
  82.     <td class="txt9pt" align="center"><font color="#FF0000"><? echo $textarea?></font></td>
  83.   </tr>
  84.   <tr>
  85.     <td colspan="2">
  86.       <textarea name="observacion" cols="80" rows="5" class="txt8pt" ></textarea>
  87.       <font color="#FF0000" class="txt8pt">Max. 1.000 catacteres</font></td>
  88.     </tr>
  89.   <tr>
  90.     <td valign="top" class="txt8pt">&nbsp;</td>
  91.     <td colspan="2">&nbsp;</td>
  92.   </tr>
  93.     </table>
  94.     <br />
  95.     <br />
  96.               <table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
  97.             <td height="37" colspan="3" class="txt9pt"><strong>Item II<div align="center" class="txt9pt" style="color:#F00;font-size:12px"><? echo $mensaje1?></div>
  98.             <div align="center" class="txt9pt" style="color:#F00; font-size:12px"><? echo $mensaje2?></div></strong>
  99.             </td>
  100.           </tr>
  101.         <tr>
  102.           <td height="28" colspan="3" class="textoCam3"><strong>¿Cuál de estas necesidades nombradas anteriormente es la que más se presenta ? (Marque hasta 5) </strong></td>
  103.           </tr>
  104.         <tr>
  105.           <td width="2%" height="27">1.</td>
  106.           <td width="42%" class="txt8pt">Problemas con un suministro(Agua, Luz, Cañerias)</td>
  107.           <td width="56%"><input name="opcion[]" type="checkbox" value="10" /></td>
  108.         </tr>
  109.         <tr>
  110.           <td height="32" class="txt8pt">2.</td>
  111.           <td class="txt8pt">Corte de Internet</td>
  112.           <td><input name="opcion[]" type="checkbox" value="11" /></td>
  113.         </tr>
  114.         <tr>
  115.           <td height="32" class="txt8pt">3.</td>
  116.           <td class="txt8pt">Precencia de prensa en tu tienda o local</td>
  117.           <td>
  118.             <input name="opcion[]" type="checkbox" value="12" />
  119.           </td>
  120.         </tr>
  121.         <tr>
  122.           <td height="32" class="txt8pt">4.</td>
  123.           <td class="txt8pt">Deterioro del material POP</td>
  124.           <td>
  125.             <input name="opcion[]" type="checkbox" value="13" />
  126.           </td>
  127.         </tr>
  128.         <tr>
  129.           <td height="32" class="txt8pt">5.</td>
  130.           <td class="txt8pt">falta o Sobrestock de productos</td>
  131.           <td>
  132.             <input name="opcion[]" type="checkbox" value="14" />
  133.           </td>
  134.         </tr>
  135.         <tr>
  136.           <td height="32" class="txt8pt">6.</td>
  137.           <td class="txt8pt">Solicitud de beneficios</td>
  138.           <td>
  139.             <input name="opcion[]" type="checkbox" value="15" />
  140.           </td>
  141.         </tr>
  142.         <tr>
  143.           <td height="32" class="txt8pt">7.</td>
  144.           <td class="txt8pt">Caida de sistema de cajas</td>
  145.           <td>
  146.             <input name="opcion[]" type="checkbox" value="16" />
  147.           </td>
  148.         </tr>
  149.         <tr>
  150.           <td height="32" class="txt8pt">8.</td>
  151.           <td class="txt8pt">Falta de personal</td>
  152.           <td>
  153.             <input name="opcion[]" type="checkbox" value="17" />
  154.           </td>
  155.         </tr>
  156.         <tr>
  157.           <td height="32" class="txt8pt">9.</td>
  158.           <td class="txt8pt">Dudas y consultas sobre liquidaciones o contratos</td>
  159.           <td>
  160.             <input name="opcion[]" type="checkbox" value="18" />
  161.           </td>
  162.         </tr>
  163.         <tr>
  164.           <td colspan="3" align="center"><br />
  165.           <input name="enviar" type="submit" class="FormgrandeNegro" title="Enviar Encuesta" value="Guardar" onclick="return validar2();"/>
  166.           </td>
  167.         </tr>
  168.         </table>
  169.       <p>&nbsp;</p>
  170.     </td>
  171.   </tr>
  172. <input type="submit" name="hola" />
  173. </form>
  174. </body>
__________________
¿Sabes cuántos programadores hacen falta para cambiar una bombilla? - no, no ¿Cuántos? - Ninguno... es un problema de hardware.