MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Updating search results page



Hi Folks,

I saw another message concerning this while searching the mailing list 
archives, but wondered if there was another solution besides the one I saw. 
I want to give users the chance to login on every page, and then just 
refresh that page when they submit their name and password, instead of 
having them taken to the ord/basket page. The problem is with the 
results.html page. It doesn't like mv_nextpage=results. A solution someone 
had in the archive was this:

[perl arg=scratch]
        $Safe{'scratch'}{'pagenow'} = 'results';
        $Safe{'scratch'}->{'pagelast'} = 'results';
        return '';
[/perl]

and then:

mv_nextpage=[scratch pagenow]

where needed. However, when I try this, I get an internal server error with 
an error.log entry saying:

[18/July/1999:15:43:57 -0700] pbn /cgi-bin/pbn/process Runtime error: Could 
not tie to '/home/catalogs/pbn/products/userdb.gdbm': Resource temporarily 
unavailable at /usr/minivend/lib/Vend/Table/GDBM.pm line 137.

Could this be caused by the fact that I'm running MV on an ancient computer 
(for testing/development purposes - it's a 486 w/32 ram, seems to handle 
most MV functions fine if somewhat slow)? Or is it something with my code, 
which is this by the way:

<stuff deleted...>

[else]If you have an account with us please login.

[set Login]
   [userdb login]
[/set]

[perl arg=scratch]
   $Safe{'scratch'}{'pagenow'} = 'results';
   $Safe{'scratch'}->{'pagelast'} = 'results';
   return '';
[/perl]

[if session failure]
[data session failure]
[/if]

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_click VALUE=Login>
<INPUT TYPE=hidden NAME=mv_doit  VALUE=return>
<INPUT TYPE=hidden NAME=mv_nextpage VALUE="[scratch pagenow]">

<div align="center"><B>Username:</B><BR>

<INPUT MAXLENGTH="14" NAME="mv_username" SIZE="12" VALUE="">

<BR><B>Password:</B><BR>

<INPUT MAXLENGTH="14" onChange="this.form.submit()" NAME="mv_password" 
TYPE="password" SIZE="12">

<INPUT TYPE=submit VALUE="Log In">

Thanks for any help!

Miles


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


Search for: Match: Format: Sort by: