hidden fields

T

Tim Snellings

STEP 1: From a database results wizard table (
http://www.buysellarestaurant.com/reg/listings ) I want
to have people click on the description and go to a Form
(ID selected).

STEP 2: People then read and complete some information at
the bottom. Once they click AGREE, they need to be taken
to a login/register page.

STEP 3: If they login, I want to take the ID# that was
on page 2 and go get the PRIVATE data for that record and
display it for them. Any thoughts? Thanks, Tim
 
M

MD Websunlimited

Hi Tim,

It looks like you pretty much have this ready to go. To set the id in the form of step 2 use
<input type="hidden" name="id" value="<% request.querystring("id") %>" >

Do the same at step 3 using the value in the SQL statement

Select * from table where id = '::id::';

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
Create fast, better scaling link bars with CSS Menu Maker
http://www.websunlimited.com/order/Product/CssMenu/css_menu.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
 
B

Bob

Tim,
Am I correct, you want to pass a variable from one ASP
page to another ASP page?
If so try this:
Put this before <html> on the page receiving the info.

<%
Session("var1")=Request.Form("field1")
Session("var2")=Request.Form("field2")
Session("var3")=Request.Form("field3")
%>

<html>

field1, field2 etc are the field names on the previous
page.


If you want to write it to a text box:
<p><input type="text" name="T1" value="<%Response.Write
Session("var1") %>"></p>

If you want to write it to the page:
<%Response.Write Session("var1") %>

Hope this helps...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top