Sie sind auf Seite 1von 2

<html>

<head>

<title>problema</title>

</head>

<body>

<form action="pagina1.asp" method="post">

Descripcion del articulo:

<input type="text" name="descripcion" size="30"><br>

Precio:

<input type="text" name="precio" size="10"><br>

<input type="submit" value="Confirmar"><br>

</form>

</body>

</html>

<%option explicit%>

<html>

<head>

<title>problema</title>

</head>

<body>

<%

dim conexion

set conexion = Server.CreateObject("ADODB.Connection")

conexion.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & _

Server.MapPath( "/aspya/usuarios/administracion.mdb")

conexion.Open
conexion.execute("insert into articulos(descripcion,precio)" & _

"values ('" & request.form("descripcion") & _

"'," & request.form("precio") & ")")

conexion.close

response.write("El artículo se cargó")

%>

</body>

</html>

Das könnte Ihnen auch gefallen