"Xuzuning" moderator for advice, there are questions ah onlookers

Source: Internet
Author: User
"Xuzuning" moderator for advice, there are problems ah, you master onlookers.
This post was last edited by u010572351 on 2013-06-23 13:23:38

Yesterday asked how to achieve multiple conditions under the classification of the search,

http://bbs.csdn.net/topics/390497100

Later I made it, but the new problem appeared, and is more deadly malpractice, want to ask again.

Question 1:
1.url above only shows the link of the current click, because the parameters are placed in the session, each link is the parameters of the current link, as if other sites are not like this, they are all parameters of the combination.
2. This problem is the most important thing is that the user clicked on the parameters of the session, if the user searched for a, but did not close the browser, browse other pages to go, and then back to search, then the session is still valid, that is, his current search scope has been limited to the last search results.

Like what:
User last search condition is: Only movie, 2012, Mandarin, and then close the page (not close the browser), after a while back, he searched for foreign films, because now the session is still valid, he is not search for things, or the range is wrong, narrow, Unless he closes the browser again.

It doesn't feel right.

Share to:


------Solution--------------------
You need to modify that post #4, #16 code
------Solution--------------------
Why not use the JS splicing URL string?

------Solution--------------------
Multi-criteria screening, I heard the first time to use the session
No language

Just a simple URL stitching.

When did you get the session?
I'll make a very simple example.

$a =$_get[' a ']
$b =$_get[' B ']
$c =$_get[' C ')
if ($a! = ") {
$aurl = "&a=". $a
}
if ($b! = ") {
$burl = "&b=". $b
}
if ($c! = ") {
$curl = "&c=". $c
}
?>
"> All ">a1
"> All &b=1 ">b1
"> All &c=1 ">c1
------Solution--------------------
No words, the code is given out, also said how to achieve
------Solution--------------------
The use of JS dynamic spell URL should be better implemented,
According to the page you gave earlier, this can be done:
1. Create a new three hidden fields on the template page

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.