AnsweredAssumed Answered

Save search query

Question asked by ccrumley on Dec 1, 2011
Latest reply on Dec 1, 2011 by ccrumley


Save search query


Instant Web Publishing search is killing me, here's the sample code:

// get the posted record data from the findrecords page
$findrequestdata = $cgi->get('storedfindrequest');
if (isset($findrequestdata)) {
$findCom = prepareFindRequest($findrequestdata, $findCommand, $cgi);


so here's the problem, and feel free to test it out on your end. 

A user searches for a record and is returned a set of results. they can then choose one of those records and view a more detailed records page.

Now lets say they want to go back to their search results for whatever reason, when they attempt to do so, the user is given a prompt by their browser:

"Confirm Form Resubmission
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed. Press Reload to resend that data and display this page."
When the user 'resubmits form data' as prompted, the site returns

Error: 401 - No records match the request

this is looking like an impossible problem to solve because of the way that Filemaker processes search forms with multiple fields. Because it processes the form as an array it is probably much more efficient, but search queries are also stored as an array.

does anyone have any ideas on how to manage this? 

cookies aren't a realistic option, because i need to store a cookie for each search field(cant store array in a cookie!), AND then process them in series of if/elseif statements.