Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/10/2004, 11:17
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola de nuevo.

Tu código un poco modificado:
Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<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: #FFFFFF}
-->
</style>
</head>

<body>
<form action="/comprobar.php" method="post" name="form" id="form" onsubmit="return validar_formulario();">
<div align="left">
  <table border="0" width="697" height="200" bgcolor="#000080" cellspacing="0" cellpadding="0" style="float: left">
    <tr>
    <td height="1" width="695"><span class="Estilo1"> &nbsp; <b><u>Dirección Web pornográfica y Su
      código de Cliente</u> :</b> </span></td>
    </tr>
    <tr>
    <td width="693" height="1" bgcolor="#3130CE"><span class="Estilo1"> </span>
      <p class="Estilo1">*Código de Cliente :&nbsp;&nbsp;
      <input name="codigo_pasado" type="text" size="17">
</p>
      <p class="Estilo1">&nbsp;</p></td>
    </tr>
    <tr>
    <td width="693" height="1" bgcolor="#3130CE"><span class="Estilo1"> &nbsp;Url Pornográfica :&nbsp;&nbsp; &nbsp; www.
<input name="url_pasada" type="text" size="17">

    
      <SELECT NAME="dom">
              <OPTION value="com" selected>.com
            <OPTION value="net">.net
            <OPTION value="org">.org
            <OPTION value="biz">.biz
            <OPTION value="info">.info
            <OPTION value="es">.es
            <OPTION value="uk">.uk
            <OPTION value="museum">.museum
            <OPTION value="cn">.cn
            <OPTION value="name">.name
            <OPTION value="us">.us
            <OPTION value="ar">.ar
            <OPTION value="ws">.ws
            <OPTION value="tv">.tv
            <OPTION value="com.es">.com.es
            <OPTION value="nom.es">.nom.es
            <OPTION value="org.es">.org.es
          </SELECT>
    
    
      <font face="Verdana" size="2"><br>
      <br>
&nbsp;Ej de dirección web correcta:
    [url]www.xxx.com[/url] ---- Ej de dirección Incorrecta:
    www.xxx.com/adultos</font> </span></td>
    </tr>
    <tr>
    <td height="22" width="695"><span class="Estilo1"> </span> <p align="center" class="Estilo1"><font face="Times New Roman" size="2">(</font><font size="2" face="Times New Roman">*) Este código le habrá llegado por correo electrónico cuando descargó ... </font></td>
    </tr>
    <tr>
    <td height="31" width="695">
      <p align="center">
        <input type="submit" value="Enviar Web">
</p>
</td>
    </tr>
  </table>
</div>
</form>
</body>

<SCRIPT language="JavaScript">
<!--
function validar_formulario() {
// Validamos Relleno Campos
      if  (document.form.codigo_pasado.value.length < 5) {
            alert("Debe insertar el Código correctamente");
            document.form.codigo_pasado.focus();
            return false;
        }
        else if (document.form.url_pasada.value.length < 9) {
            alert("La Web debe tener el formato [url]www.dominio.com[/url] .es .org etc, sin las barras //");
            document.form.url_pasada.focus();
            return false;
        }

    //return true;
}
//-->
</SCRIPT>


</html> 
Dos saludos.