%@ Language=VBScript %> <% Response.Buffer=true Dim j,k,p, blnReservation, blnerreur blnerreur=false if Request.form("cmdReserver")="Réserver" then blnReservation=verification(Request.Form("salleid"),Request.Form("hhdebut"),Request.Form("mmdebut"),Request.Form("hhfin"),Request.Form("mmfin") ) if blnReservation=false then Set objRS = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM Produits WHERE RéfProduit=" & Request.Form("salleid") objRS.Open strSQL,objConn Session("nom")=objRS("Nom") Session("capacite")=objRS("Capacité") objRS.Close strSQL = "SELECT ClientNom FROM Tbl_Client WHERE NoClient=" & Request.form("org") objRS.Open strSQL,objConn Session("nomorg")=objRS("ClientNom") Session("org")=Request.Form("org") Session("salleid")= Request.Form("salleid") Session("hhdebut")= Request.Form("hhdebut") Session("mmdebut")= Request.Form("mmdebut") Session("hhfin")= Request.Form("hhfin") Session("mmfin")= Request.Form("mmfin") Response.Redirect "reservation_details.asp" else blnerreur=true end if end if %>
<% if blnerreur=true then %> <%end if%>