Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

hey how can i pass the calues for search page

Posted on 2008-10-10
4
Medium Priority
?
251 Views
Last Modified: 2013-12-08
hi,
i have 6 to 7 values that must pass from one page to query page to find out the exact search but how to do that please suggest
0
Comment
Question by:devilsuraj
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 22686014
you have several options:
* session data
* url parameters
* post data
* database contents

the easiest is the url, but it shows the user how to call the page, actually.
post data is similar to the url, also very easy, but can also be "spoofed"
the most secure is session data, and you save the parameter in the session, and then call (redirect) to the search page, which then uses the session data
saving the parameters in a database table, along with the session id, and then in the search page query for the search parameters first, or letting the query use the parameter values stored, is the "heaviest", but has some other advantages...
0
 
LVL 10

Assisted Solution

by:slamhound
slamhound earned 500 total points
ID: 22700324
Angel is right....I would use session variables.

On one page you would put something like:
session("MyFirstValue") = 12345

And then on every other page you can reference the session variable like any regular variable.
Str = "Select * from tblTable where Field = " & Session("MyFirstValue")
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question