Quijost

Por favor ingresa o regístrate.

Ingresar con nombre de usuario, contraseña y duración de la sesión
Búsqueda Avanzada  

Noticias:

Quijost.com - Hosting Gratis al alcance de tus manos

Autor Tema: No me funciona lo de enviar formularios  (Leído 7647 veces)

0 Usuarios y 1 Visitante están viendo este tema.

diwebver

  • Usuario nuevo
  • *
  • Karma: +0/-0
  • Desconectado Desconectado
  • Mensajes: 6
    • Ver Perfil
No me funciona lo de enviar formularios
« en: Mayo 12, 2010, 19:50:53 pm »

hola soy Abel de diwebver Sobre lo de envio de formularios no he visto en ninguno en el resumen de codigo indexphp  y en la entrada de las paginas wep que realizo al indice de fotos,servicios.html  y otros todo es html  incluso el que abre la pagina  es imdex.html  vuelvo a pasar otra copia de codigo para que lo comprobeis ? Perdonat no se mucho de nformatica pero con otros informaticos ya llevo tiempo luichando con este tema.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
.Estilo1 {color: #FF0000}
.Estilo2 {color: #0000FF}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>

<body>
<form action="mailto:abelverdes@hotmail.com" method="post" name="form1" id="form1" onsubmit="MM_validateForm('textfield','','R');MM_validateForm('label','','RisEmail');MM_validateForm('textarea','','R');return document.MM_returnValue">
  <strong>  FORMULARIO DE PETICION INFORMACION  </strong>
  <table width="80%" border="1">
    <tr>
      <td colspan="2"><span class="Estilo1">Si desea informacion rellene este formulario</span> </td>
    </tr>
    <tr>
      <td>Nombre</td>
      <td><label for="textfield"></label>
      <input name="textfield" type="text" id="textfield" size="30" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="26">Direcion de e-mail     
      <label for="label"></label></td>
      <td><label for="label"></label>
      <input name="textfield2" type="text" id="label" size="40" maxlength="40" /></td>
    </tr>
    <tr>
      <td>Pais o ciudad </td>
      <td><label for="select"></label>
        <select name="select" id="select">
          <option value="Hu">Huesca</option>
          <option value="Le">Lerida</option>
          <option value="Za">Zaragoza</option>
          <option value="Ta">Tarragona</option>
        </select>
      <label for="checkbox"></label></td>
    </tr>
    <tr>
      <td>Como nos conocio </td>
      <td><table width="99%" border="1">
        <tr>
          <td><input name="pop" type="radio" id="radiobutton" value="radiobutton" checked="checked" />
            <label for="radiobutton">Pag.Web</label></td>
          <td><input name="pop" type="radio" value="radiobutton" id="radio" />
            Revista
            <label for="radio"></label></td>
          <td><input name="pop" type="radio" value="radiobutton" id="radio2" />
            <label for="radio2">Un amigo </label></td>
          <td><input name="pop" type="radio" value="radiobutton" id="radio3" />
            Ingenieria
            <label for="radio3"></label></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td colspan="2"><span class="Estilo2">Que temas han sido mas de su interes </span></td>
    </tr>
    <tr>
      <td height="31" colspan="2"><table width="99%" border="1">
        <tr>
          <td width="36%" height="26"><input type="checkbox" name="checkbox" value="checkbox" id="checkbox" />
            nuestro producto
            <label for="checkbox"></label></td>
          <td width="18%"><input type="checkbox" name="checkbox2" value="checkbox" id="checkbox2" />
            <label for="checkbox2">Las obras </label></td>
          <td width="25%"><label for="radio4">
            <input type="checkbox" name="checkbox3" value="checkbox" id="checkbox3" />
          Nust.Cont,d.Cali</label></td>
          <td width="21%"><input type="checkbox" name="checkbox4" value="checkbox" id="checkbox4" />
            <label for="checkbox4">n.obras</label></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td>Comentarios (obligado) </td>
      <td><label for="textarea"></label>
      <textarea name="textarea" cols="40" rows="3" id="textarea"></textarea></td>
    </tr>
    <tr>
      <td><label for="Submit"></label>
      <input type="submit" name="Submit" value="Enviar" id="Submit" /></td>
      <td><label for="label2"></label>
      <input type="reset" name="Submit2" value="Anular" id="label2" /></td>
    </tr>
  </table>
</form>
</body>
</html>
En línea

shakaran

  • Soporte
  • Administrator
  • Usuario profesional
  • *****
  • Karma: +12/-0
  • Desconectado Desconectado
  • Sexo: Masculino
  • Mensajes: 487
  • Un buen soporte lo es todo
    • Ver Perfil
    • Shakaran
Re:No me funciona lo de enviar formularios
« Respuesta #1 en: Mayo 13, 2010, 07:56:13 am »

Como te dije en el anterior tema, es el action el que tienes mal, y revisa por favor el enlace de ayuda que te dí.
En línea
Ángel Guzmán Maeso
Quijost Founder - Backend Engineer & Main support
 

Página generada en 0.16 segundos con 35 consultas.