This topic is locked
[SOLVED]

 Save search parameters

9/23/2010 5:05:17 PM
PHPRunner General questions
J
jackaroo author

I would like to use the 'Insert Button' feature to capture and save the search parameters entered in the 'quick search panel' (v5.2). What Javascript code do I need to enter in the 'Client Before' section of the button to fetch these values?
Thanks,

Jack

A
ann 9/24/2010

Jack,
use Server tab to capture these values:

$field=$_REQUEST["field1"];

$value=$_REQUEST["value11"];
J
jackaroo author 9/24/2010



Jack,
use Server tab to capture these values:

$field=$_REQUEST["field1"];

$value=$_REQUEST["value11"];



Ann,
I echoed the $_REQUEST array on my list page and the values are consistent with what you are telling me.
However, my button return 'null'.
Server tab: $result["txt"] = $_REQUEST["value11"];

Client after: var message = result["txt"];

ctrl.setMessage(message);
What am I doing wrong?

As an alternative, can I capture the entire search query instead?
Thanks,

Jack

A
ann 9/28/2010

Jack,
use $_SERVER["QUERY_STRING"] sessions variable to return the whole string.

More detailed:

http://php.net/manual/en/reserved.variables.server.php
It's difficult to tell you why the code won't work without seeing actual files.

Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.