Home | Advertising Info95 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: Searching databases using HTML forms...
From: Afolabi Arowolo
Date: 10/2/2000 7:09:34 PM
IP: 195.92.67.67



 

Hello their I had to implement something similar to what you,re trying to achieve. You can achieve what you want without submitting to 2 pages. Try this. you have a page called one.asp

<%name = request.form("name")
set rs = server.createobject("adodb.recordset")
sql = "select name from database where name = " &name& ""
rs.open sql, con
%>
<%
name = rs("name")
%>
<html>
<head>
<title>displaying results on one page</title>
</head>
<body>
<form action = "one.asp" method ="post">
<table>
<tr>
<td><input type= "textbox" name="name" value="<%=name%>"></td>
</tr>
<tr>
<td><input type="submit" value="send"></td>
</tr>
</table>
</form>

<%rs.close
set rs = nothing
con.close
set con = nothing
%>
As you can see from the above code the page submits to itself, it queries the database, passes the information to the variable called name which is then inserted into the value field of the textbox. I hope I,ve helped, email me back please as this is my first correspondence to a forum question. Cheers. p.s I presume you are using an include file for your connection string

Previous Message


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com