OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Passing Parameters - struggling with frontpage

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Passing Parameters - struggling with frontpage
Page: [1]
 
LowSociety

 

Posts: 3
Joined: 3/30/2009
Status: offline

 
Passing Parameters - struggling with frontpage - 3/30/2009 15:49:45   
Hi,
Please excuse me for asking what may be a dumb question, but I'm fairly new to working with ASP, particularly in FrontPage.

I have an intranet site that uses FrontPage 2003 to connect to an Access 2003 database and displays a list of choices for the visitor to select from one of the tables.

When a user clicks on an option, it takes them to a second page and users a parameter to filter the results based on their selection from the previous page. So far so good, however...

On the second page, I want the user to select from another list of choices (e.g. a dependant drop-down field) that will allow them to further filter their selection and display the results at the bottom of the page. When it filters on the second page, it 'forgets' the parameter passed from the first page.

How do I get the second page to remember the parameter that was passed, so the visitor can make further selections on page 2, based upon the original selection in page 1.

Hope this makes sense! Thanks for any help or suggestions provided.
BeTheBall

 

Posts: 6493
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Passing Parameters - struggling with frontpage - 3/30/2009 15:55:36   
Welcome!

Use request.querystring to get the passed parameter. For example, on page 2 you should be able to insert something like this to see the passed parameter:

<%
Response.write(request.querystring("NameOfParameter")
%>

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to LowSociety)
LowSociety

 

Posts: 3
Joined: 3/30/2009
Status: offline

 
RE: Passing Parameters - struggling with frontpage - 3/30/2009 16:33:40   
Hi,
Thanks for the welcome and the quick reply.

I am able to use the code you suggested to see the parameter passed to the second page, but when I try and pass the parameter either to another page with a second additional parameter, or to refresh the second page with both parameters, the first parameter gets lost.

Sorry if I'm not explaining myself very clearly.

On the first page, I may select option 1, 2 or 3. If I select Option 2...
On the second page I can see Option 2 as the passed parameter. But If I select another option a,b, or c - If I choose option c...
On the third page (or second page if I try and pass the parameters back to the same page), it either forgets both parameters, or at best, it only passes option c and forgets Option 2 (the first parameter).

Thanks,
Gary

(in reply to BeTheBall)
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Passing Parameters - struggling with frontpage - 3/30/2009 16:51:57   
This is an example of how to pass variables from page to page using a multi-part form and ASP.

We will "build-a-doll" by choosing Hair, Eye and Dress colors. We are going to pass the form variables from page to page and make sure they (1) are unable to be edited in subsequent pages and (2) place them in the next page's form field. On the last page we will write them out to the page and submit them to a database. You will then have an opportunity to edit the data in the database.

http://www.texaswebdevelopers.com/examples/passingvariables/index.asp

_____________________________

:)

Follow us on TWITTER

(in reply to LowSociety)
LowSociety

 

Posts: 3
Joined: 3/30/2009
Status: offline

 
RE: Passing Parameters - struggling with frontpage - 3/30/2009 20:48:54   
Thank you very much.

That appears to be exactly the kind of thing that I'm trying to achieve. I'll have a look at the code and give it a try.

Your help is really appreciated - thanks again.

Gary

(in reply to TexasWebDevelopers)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Passing Parameters - struggling with frontpage
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts