Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/06/2002, 09:10
rashid
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 22 años, 4 meses
Puntos: 11
Donde esta el problema?

Donde esta el error, una pagina casi exacta funciona, pero esta no funciona, la unica diferencia es que aquella es HTML esta es asp.
<html>
<head>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Wayne Nolting ([email protected]) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.form.nombre.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.fichero.value=="") {
themessage = themessage + " - Last Name";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
}
}
// End -->
</script>

<link rel="stylesheet" href="../css/addNewForm2.css" type="text/css">
<title>Formulario de envío de ficheros</title>

</head>
<body>
<%
Call DoPageHeader
%>
<h3 align="center">Upload the image.</h3>
<p> </p>
<form action="uptest.asp" method="post" enctype="multipart/form-data" name=form>
<table width="75%" border="0">
<tr>
<td>Comment about the Image</td>
<td>
<textarea name="nombre" cols="50" rows="5"></textarea>
</td>
</tr>
<tr>
<td>Select the image</td>
<td>
<input type="file" name="fichero" size="20">
</td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" name="submit" onclick="verify();">
</td>
</tr>
<tr>
<td colspan="2">
<center>
<% Call AuctionNavigation %>
</center>
</td>
</tr>
</table>
<br>
<br>
</form>
</body>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</html>

Lo que quiero es que el campo texto no este vacio