Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: =?iso-8859-1?Q?RE:_[asp=5Fdatabases]_RE:_Checkbox?=


Message #1 by "=?iso-8859-1?Q?jhd67?=" <jhd67@v...> on Thu, 5 Dec 2002 18:09:56 +0100
cannot have the result page2 to display the record submited from the first page
Thank you

> and the problem is?
> 
> -----Original Message-----
> From: jhd67@v... [mailto:jhd67@v...]
> Sent: Thursday, December 05, 2002 4:25 PM
> To: ASP Databases
> Subject: [asp_databases] Checkbox
> 
> 
> i am trying to compare two Cars once two or three checked you click 
> submit, and comapre them: here is my first page:
> 
> If Request("Checkbox") <> "" Then
> 
> Set oRs =3D cn.Execute("SELECT * FROM CarID WHERE Checkbox =3D -1")
> 
> END IF
> 
>  
> 
> 'while not oRs.EOF
> 
>    response.write "<a href=3D'showdetails.asp?CarID=3D" &server.urlEncode(oRs
> ("CarID"))& "'>" &"<input name=3DCheckbox type=3Dcheckbox value=3D(oRs(CarID)
> >"&oRs("Year")& "</a>&oRs("Model")& " " &oRs("State")& 
>             Count =3D Count + 1
> 
>             oRs.MoveNext
> 
> Loop
> 
> %>
> 
> -------------------------------------------------------------------------
> 
>  
> 
> Second page:
> 
>  
> 
> <%
> 
> Dim Rscomapre
> 
> Dim Rscomapre_numRows
> 
>  
> 
> Set Rscomapre =3D Server.CreateObject("ADODB.Recordset")
> 
> Rscomapre.ActiveConnection =3D MM_autofindtwo_STRING
> 
> Rscomapre.Source =3D "SELECT * FROM cars"
> 
> Rscomapre.CursorType =3D 0
> 
> Rscomapre.CursorLocation =3D 2
> 
> Rscomapre.LockType =3D 1
> 
> Rscomapre.Open()
> 
>  
> 
> Rscomapre_numRows =3D 0
> 
> %>
> 
> <html>
> 
> <head>
> 
> <title>Untitled Document</title>
> 
> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-1">
> 
> </head>
> 
>  
> 
> <body>
> 
> </body>
> 
> </html>
> 
> <%
> 
> Rscomapre.Close()
> 
> Set Rscomapre =3D Nothing
> 
> %>
> 
>  
> 
> Thank you
> 
> 
------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 


  Return to Index