Gossamer Forum
Home : Products : DBMan : Installation :

link back to original search results

Quote Reply
link back to original search results
Hello all...What I'm trying to do is this:
I display 5 hits per page in search results...Each item has a link to an external shopping cart...this shopping cart has the ability to return the user to continue shopping on the page they just came from if I pass a url in the link from my page...Problem is that I can't get dbman to display all 5 hits from original search - I can only get it to work when I pass specific ID such as:
<A HREF="http://shoppingcart/url_http://my_domain/cgi-bin/dbman/db.cgi?db=default&uid=default&view_records=1&ID=$rec{'ID'}">

I know a user's browser back button works but there is also a continue shopping button on the external page that takes the url I've passed and returns them to the same page they came from. What is the proper dbman syntax in the above example to return them to the same search results page?

Thanks much in advance
hooter
Quote Reply
Re: link back to original search results In reply to
I hesitate to say that anything can't be done with DBMan, but this may be the one exception. Since the script starts over completely every time an action is taken, previous search terms aren't kept. You'd have to find a way to save the search terms and I don't know what that would be.

------------------
JPD
Quote Reply
Re: link back to original search results In reply to
Eureka!... I think Wink After pawing through Alex's db.cgi I took a wild guess and here
is what I came up with :
Replaced this
<A HREF="http://shoppingcart/url_http://my_domain/cgi-bin/dbman/db.cgi?db=default&uid=default&view_records=1&ID=$rec{'ID'}">

With this
<A HREF="http://shoppingcart/url_http://my_domain/cgi-bin/dbman/db.cgi?$ENV{'QUERY_STRING'}">

It seems to work...Thanks JPDeni for your quick response...I guess we've discovered
one more thing DBman can do...And thanks
Alex for a robust and expertly crafted program. Now if only we could have a GUI/Browser-based configuration/layout
front-end Wink

ciao,
hooter

Quote Reply
Re: link back to original search results In reply to
Excellent! Seems like every time I say "it can't be done," someone proves me wrong!! Smile



------------------
JPD