Foros del Web » Programando para Internet » PHP »

Problema con formulario complejo Parte lll

Estas en el tema de Problema con formulario complejo Parte lll en el foro de PHP en Foros del Web. tercera parte y ultima Código PHP: type="checkbox" value="Metal Fabrication, Stamping and Sheet Metal Assemblies" />                                       </b><br>                                       <br>                                       g. Metal Casting <b>                                       <input name="production_integration_6" type="checkbox" value="Metal Casting" />                                      </b><br>                                       <br>                                       h. CNC Machining <b>                                       <input name="production_integration_7" type="checkbox" value="CNC Machining" />                                      </b><br> <br>                                       i. Thermal Forming <b>                                       <input name="production_integration_8" type="checkbox" value="Thermal Forming" />                                       </b><br> <br>                                       j. Plastic Extrusions <b>                                       <input name="production_integration_9" type="checkbox" value="Plastic Extrusions" />                                       </b><br> <br>                                       k. Metal Extrusions <b>                                       <input name="production_integration_10" type="checkbox" value="Metal Extrusions" />                                       </b><br> <br> ...
  #1 (permalink)  
Antiguo 05/03/2007, 12:38
Avatar de maxi_lance  
Fecha de Ingreso: julio-2006
Ubicación: Capital Federal
Mensajes: 220
Antigüedad: 17 años, 10 meses
Puntos: 2
Problema con formulario complejo Parte lll

tercera parte y ultima

Código PHP:
type="checkbox" value="Metal Fabrication, Stamping and Sheet Metal Assemblies" />
                                      </b><br>
                                      <br>
                                      g. Metal Casting <b>
                                      <input name="production_integration_6" type="checkbox" value="Metal Casting" />
                                     </b><br>
                                      <br>
                                      h. CNC Machining <b>
                                      <input name="production_integration_7" type="checkbox" value="CNC Machining" />
                                     </b><br> <br>
                                      i. Thermal Forming <b>
                                      <input name="production_integration_8" type="checkbox" value="Thermal Forming" />
                                      </b><br> <br>
                                      j. Plastic Extrusions <b>
                                      <input name="production_integration_9" type="checkbox" value="Plastic Extrusions" />
                                      </b><br> <br>
                                      k. Metal Extrusions <b>
                                      <input name="production_integration_10" type="checkbox" value="Metal Extrusions" />
                                      </b><br> <br>
                                      l. PCB Fabrications <b>
                                      <input name="production_integration_11" type="checkbox" value="PCB Fabrications" />
                                      </b><br> <br>
                                      m. PCB Assemblies <b>
                                      <input name="production_integration_12" type="checkbox" value="PCB Assemblies" />
                                      </b><br> <br>
                                      n. Apparel, Leather, Textile, Wood and Paper 
                                      Products <b>
                                     <input name="production_integration_13" type="checkbox" value="Apparel, Leather, Textile, Wood and Paper Products" />
                                      </b><br> <br>
                                      o. Secondary and Finishing <b> 
                                      <input name="production_integration_14" type="checkbox" value="Secondary and Finishing" />
                                      <br>
                                      <br>
                                      </b>
                                      <table border="0" cellspacing="5" cellpadding="0">
                                        <tr> 
                                          <td valign="top" class="contact-10">Project 
                                            Description and Notes</td>
                                          <td width="10"></td>
                                          <td><textarea name="project" id="project"></textarea></td>
                                        </tr>
                                      </table></td>
</tr>
<tr>
    <td>&nbsp;</td>
</tr>
<tr>
    <td><input type="button" onclick="MM_validateForm('firstname','','R','lastname','','R','company','','R','phone','','R','mail','','RisEmail');return document.MM_returnValue" value="Submit" /></td>
</tr>
</table>


    </td>
    <td width="5"></td>
</tr>
</table>
<?
}
else {

    echo 
'<br><div align="center">Your Mail has been sent! Your project ID is: '$_GET['codigo'] .'</div>';
    
}
?>
        </td>
    </tr>
    <tr><td height="50"></td></tr>
    <tr><td class="footer"></td></tr>
    </table>
    </td>
</tr>
</table>
    </td>
    <td class="right-nav-inner"><img src="imagenes/right-side-menu-inner.jpg" width="57" height="134" alt=""></td>
</tr>
</table>
</td></tr></table>

    <input type="hidden" name="act" value="enviar_form" />

</form>

<map name="request">
<area alt="" coords="254,34,341,52" href="quotation.htm">
</map>

<script language="javascript" type="text/javascript" src="inc/Validator.js"></script>

<script language="javascript" type="text/javascript">

    function chk_form() {
        
        var nombres_campos = new Array(); 
        //nombres_campos['usuario'] = 'Usuario';
        
        var ok = Validator.validar(document.frm,nombres_campos);
        
        if(ok) {
        
            document.frm.submit();        
            
        }
        else {
            Validator.imprimir_mensajes();
        }    
    }

</script>


</body>
</html>
  #2 (permalink)  
Antiguo 05/03/2007, 12:49
Avatar de mauled  
Fecha de Ingreso: marzo-2005
Ubicación: Cd. de México.
Mensajes: 3.001
Antigüedad: 19 años, 2 meses
Puntos: 33
De acuerdo Re: Problema con formulario complejo Parte lll

Tu código es muy extenso, lo mejor es que nos indicaras cual es el error que estas teniendo.

Saludillos.
  #3 (permalink)  
Antiguo 05/03/2007, 13:01
Avatar de maxi_lance  
Fecha de Ingreso: julio-2006
Ubicación: Capital Federal
Mensajes: 220
Antigüedad: 17 años, 10 meses
Puntos: 2
Re: Problema con formulario complejo Parte lll

el error es que al apretar submit no hace absolutamente nada, en cambio si salta algun error como que falta completar un campo obligatorio, me avisa mediante un cuadro de dialogo diciendo cual falta. Pero al estar correctamente completado, el boton submit no realiza ninguna accion.
  #4 (permalink)  
Antiguo 05/03/2007, 13:36
 
Fecha de Ingreso: abril-2006
Ubicación: Colombia
Mensajes: 648
Antigüedad: 18 años, 1 mes
Puntos: 3
Re: Problema con formulario complejo Parte lll

Hola

Bueno, lo que pasa es que tienes un input type=button en vez de tener un input type=submit, cambia eso y viajara a la pagina del action que se indica en form action, suerte.
  #5 (permalink)  
Antiguo 05/03/2007, 13:44
Avatar de maxi_lance  
Fecha de Ingreso: julio-2006
Ubicación: Capital Federal
Mensajes: 220
Antigüedad: 17 años, 10 meses
Puntos: 2
Re: Problema con formulario complejo Parte lll

te agradezco por la respuesta. He cambiado a submit en vez de button, pero sigue sin hacer nada
Código HTML:
<input type="submit" onclick="MM_validateForm('firstname','','R','lastname','','R','company','','R','phone','','R','mail','','RisEmail');return document.MM_returnValue" value="Submit" /> 
  #6 (permalink)  
Antiguo 05/03/2007, 13:58
Avatar de maxi_lance  
Fecha de Ingreso: julio-2006
Ubicación: Capital Federal
Mensajes: 220
Antigüedad: 17 años, 10 meses
Puntos: 2
Re: Problema con formulario complejo Parte lll

Es decir, ahora me recarga el quotation.php, y quedan los datos vacios como si fuesen enviados, pero en mi casilla de correo no figuran.
  #7 (permalink)  
Antiguo 05/03/2007, 14:01
Avatar de maxi_lance  
Fecha de Ingreso: julio-2006
Ubicación: Capital Federal
Mensajes: 220
Antigüedad: 17 años, 10 meses
Puntos: 2
Re: Problema con formulario complejo Parte lll

te agradezcom mucho patron porque has hecho funcionar mi formulario. Cambie la direccion de correo a yahoo, y funciona! infinitas gracias!
  #8 (permalink)  
Antiguo 05/03/2007, 20:55
 
Fecha de Ingreso: abril-2006
Ubicación: Colombia
Mensajes: 648
Antigüedad: 18 años, 1 mes
Puntos: 3
Re: Problema con formulario complejo Parte lll

Hola

Bueno, por nada, siempre para ayudaros

Suerte.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:16.