Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/07/2002, 16:30
Renegado
 
Fecha de Ingreso: febrero-2002
Ubicación: Santiago
Mensajes: 253
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: error con action del formulario

LA PAGINA SE LLAMA PRINCIPAL.ASP
(SE PUEDE HACER SIN HACER QUE EL ACTION LLAME A OTRA PAGINA)

<html>
<head>
<title>sistema...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#CCCCCC" text="#000000">


<form name="crear_esquema_pago" method="post" action="principal.asp">
<p>
<input type="text" name="mes">
</p>
<p>
<input type="text" name="valor>
</p>


<%set conexion=Server.Createobject("adodb.connectio n")
conexion.open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=;Initial Catalog=sagef;Data Source=renegado;"
conexion.execute "insert into esquema_de_pago values ('"&mes&"','"&valor&amp ;"')"
conexion.close()
%>


<p>
<input type="submit" name="Submit" value="guardar">
</p>
</form>


</body>
</html>