Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4544730
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:42:46+00:00 2026-05-21T15:42:46+00:00

My script is working perfect as it stands, but I have been trying to

  • 0

My script is working perfect as it stands, but I have been trying to resolve a way to pass session values (to maintain the form search criteria values) between two browsers on different machines (for sharing the query results).

I am looking at two approaches:

1) Extract the url parameters from the search string url path eg: …url/50/1/4/5/98764 and echo them back out in the values of the search form.

2) Use a session (which I am using now to maintain the values) for an independent user. And this is working fine for a single browser of course.

My main question is what approach is best to share search results while maintaining the search values in the form fields?

YES. I am aware it’s a bad idea to share session info like this, but its required I have no choice!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:42:47+00:00Added an answer on May 21, 2026 at 3:42 pm

    Best practice would be #1, extract the parameters from the url and display them on the form. You can keep it pretty clean by keeping the parameters for the url and form the same. I use a whitelist to extract and push to the view:

    function search() {
        if(isset($this->data)) {
            // redirect to search with named params
            ...
        } else {
            $whitelist = array('param1','param2','param3');
            foreach($whitelist as $param) {
                if(isset($this->params['named'][$param])) {
                    $this->data['Model'][$param] = $this->params['named'][$param];
                }
            }
        }
    }
    

    Assuming you have your form something like:

    echo $form->input('param1'),
         $form->input('param2'),
         $form->input('param3')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get this simple PowerShell script working, but I think something is
In tcsh , I have the following script working: #!/bin/tcsh setenv X_ROOT /some/specified/path setenv
I'm working on a Perl script. How can I pass command line parameters to
I have a Javascript image switcher on my products page. It working perfect in
i m using jQuery tablsorter plugin, it's working perfect,but now problem is ... i
I'm pulling my hair out trying to get a jQuery script working that will
I am working on a bash script where I need to conditionally execute some
I'm working on a configuration script for a JNI wrapper. One of the configuration
I'm working on a script in PHP that needs to get some info from
I'm working with a VB Script file written by someone else that uses Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.