Solved

hey how can i pass the calues for search page

Posted on 2008-10-10
4
229 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 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 125 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 125 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Issues with Insert statement 12 26
specific questions about shipping a coat 4 39
View SQL 2005 Job package 16 41
alert(innerHTML); 7 8
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

775 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