Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/07/2002, 13:28
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 23 años, 3 meses
Puntos: 50
Re: Error con el action

Porque no haces una evaluación para saber si el usario ha los datos, y así cargalos en la misma página :

ejemplo
Código:
<html>
<head>
<title>sistema...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#CCCCCC" text="#000000">

<%
if request("mes") and request("valor")="" then %>

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

<%
else
nuevo1= request.form("mes")
nuevo2= request.form("valor")

set conexion=Server.Createobject("adodb.connection")
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 ('"&nuevo1&"','"&nuevo2&"')"
conexion.close() 
%>
<p>
<input type="submit" name="Submit" value="guardar">
</p>
</form>

<%
end if
%>
</body>
</html>
Saludos..!! ;)

<html><center><embed src="http://www.angelfire.com/on/cobainss/Movie1.swf" height=80 width=200><BR></embed></center></html>