Solved

hey how can i pass the calues for search page

Posted on 2008-10-10
4
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 143

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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

624 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