Gossamer Forum
Home : Products : DBMan : Customization :

view_search=1 after login

Quote Reply
view_search=1 after login
I want to direct visitors to the view_search=1 form direct after login, so that they donīt need to study the form1 which is the current link in sub html_login_form {

I changed:

<form action="$db_script_url" method="post" name="form1">

to:
<form action="$db_script_url" method="post" name="view_search=1">


but it seems to be not working

Michael
Quote Reply
Re: view_search=1 after login In reply to
Michael,
undo that mod. The form name is only used for the onLoad focus() in body tag.
To change the way the "sub main" in the "db.cgi" file finds the next page if log in is ok.

Code:
elsif ($in{'admin_display'}) { if ($per_admin) { &admin_display; } else { &html_unauth; } }
elsif ($in{'logoff'}) { &auth_logging('logged off') if ($auth_logging);
$auth_logoff ? (print "Location: $auth_logoff\n\n") : (print "Location: $db_script_url\n\n"); }
elsif ((keys(%in) <= 2) | |
($in{'login'})) { &html_view_search ; }

in the ($in{'login'} change &html_home to &html_view_search

this is the direction if login is "ok"

[This message has been edited by Dave T (edited November 22, 1999).]