Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/06/2003, 10:30
ciberpata
 
Fecha de Ingreso: junio-2003
Ubicación: Santiago de Compostela
Mensajes: 603
Antigüedad: 21 años, 11 meses
Puntos: 0
Mostrar formulario en frame

Cita:
Mensaje Original por dazuaga
mmm... tenés algún problema de targets, me parece.

por qué no nos ponés el código de la página que procesa el form y luego muestra ese mensajito?

Ahí va el código:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Desde aqu&iacute; puede insertar las ofertas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body>
<!--Incluimos el fichero de constantes-->
<!--#INCLUDE File="ADOVBS.inc"-->
<% IF (request.form <> "") then
Set Ob_Conn = Server.CreateObject("ADODB.Connection")
Set Ob_RS = Server.CreateObject("ADODB.Recordset")
' Abrimos el ODBC
Ob_Conn.open "cvo_odbc"
Ob_RS.open "ofertas", Ob_Conn, adOpenStatic, adCmdTable
Ob_RS.addnew
Ob_RS("destino")=request.Form("destino")
Ob_RS("pais")=request.Form("pais")
Ob_RS("zona")=request.Form("zona")
Ob_RS("salidas")=request.Form("salidas")
Ob_RS("fechasalida")=request.Form("fechasalida")
Ob_RS("hotelclave")=request.Form("hotelclave")
Ob_RS("hotelnombre")=request.Form("hotelnombre")
Ob_RS("hotelcategoria")=request.Form("hotelcategor ia")
Ob_RS("hotelsituacion")=request.Form("hotelsituaci on")
Ob_RS("hotelfoto")=request.Form("hotelfoto")
Ob_RS("hotelalojamiento")=request.Form("hotelaloja miento")
Ob_RS("hotelrestauracion")=request.Form("hotelrest auracion")
Ob_RS("hotelinstyservicios")=request.Form("hotelin styservicios")
Ob_RS("hotelcaracteristicas")=request.Form("hotelc aracteristicas")
Ob_RS("hotelregimen")=request.Form("hotelregimen")
Ob_RS("hotelprecio")=request.Form("hotelprecio")
Ob_RS("mayorista")=request.Form("mayorista")
Ob_RS("observaciones")=request.Form("observaciones ")
'FOR EACH NombreCampo IN (request.Form)
' Ob_RS(NombreCampo)=request.Form(NombreCampo)
Ob_RS.update
'NEXT

response.write "Oferta insertada"
Ob_RS.close
Ob_Conn.close
%>

<% ELSE %>
<!--Se muestra la cabecera "INSERTE LAS OFERTAS" con el formulario en blanco preparado para ser cubierto-->
<p align="center"><strong>INSERTE LAS OFERTAS</strong> </p>
<form name="form1" method="post" action="insertar_ofertas.asp">
<p>Destino
<input name="destino" type="text" id="destino" size="20" maxlength="20">
Pais
<input name="pais" type="text" id="pais" size="20" maxlength="20">
Zona
<input name="zona" type="text" id="zona" size="25" maxlength="25">
Salidas
<input name="salidas" type="text" id="salidas" size="40" maxlength="40">
<br>
Fecha Salida
<input name="fechasalida" type="text" id="fechasalida" size="8" maxlength="8">
Clave hotel/apartamento
<select name="hotelclave" size="1" id="select">
<option>Hotel</option>
<option>Apartamento</option>
<option>ApartHotel</option>
</select>
<br>
Nombre hotel/apartamento
<input name="hotelnombre" type="text" id="hotelnombre" size="20" maxlength="20">
Categor&iacute;a hotel/apartamento
<input name="hotelcategoria" type="text" id="hotelcategoria" size="1" maxlength="1">
<br>
Situaci&oacute;n hotel/apartamento
<input name="hotelsituacion" type="text" id="hotelsituacion" value="" maxlength="50">
<br>
Foto hotel/apartamento
<input name="hotelfoto" type="text" id="hotelfoto" size="15" maxlength="15">
<br>
Alojamiento hotel/apartamento
<input name="hotelalojamiento" type="text" id="hotelalojamiento" maxlength="50">
<br>
Restauraci&oacute;n hotel/apartamento
<input name="hotelrestauracion" type="text" id="hotelrestauracion" maxlength="50">
<br>
Instalaci&oacute;n y Servicios hotel/apartamento
<input name="hotelinstyservicios" type="text" id="hotelinstyservicios" maxlength="50">
<br>
Caracter&iacute;sticas hotel/apartamento
<input name="hotelcaracteristicas" type="text" id="hotelcaracteristicas" maxlength="50">
<br>
Regimen hotel/apartamento
<select name="hotelregimen" id="hotelregimen">
<option>Alojamiento</option>
<option>Alojamiento y Desayuno</option>
<option>Media Pension</option>
<option>Pension Completa</option>
<option>Todo Incluido</option>
</select>
<br>
Precio hotel/apartamento
<input name="hotelprecio" type="text" id="hotelprecio" size="4" maxlength="4">
<br>
Mayorista hotel/apartamento
<input name="mayorista" type="text" id="mayorista" size="20" maxlength="20">
<br>
Observaciones
<input name="observaciones" type="text" id="observaciones" value="" size="50" maxlength="50">
</p>
<p align="center">
<input type="submit" name="Submit" value="Enviar Datos">
<input type="reset" name="Submit2" value="Borrar Formulario">
</p>
</form>
<% END IF %>
</body>
</html>