Whew... I'm full of questions tonight... Here we go...
My database is set up so that a default user can view all records without loggin in. There is a modify/add button that really only takes them to a login screen using
(more on the \?modlog=1 in a second)
After a user logs in, they are automatically taken to an add screen if they don't already have a record in their name, on the home screen if they do. What I tried to was pass a switch in the static link to login in that would be pass along by means of hidden fields using
in the login form. So far, everything works. The variable logmod=1 is passthrough the system until it gets to:
Take place to rediect them to the modify_form, while passing along the DB key. (And not the modlog variable). The only problem is that I think my code for passing the DB key is incorrect. I get a message saying that no search was defined. That's because I only need the key to be passed to bring back a valid search.
I think my logic in this is correct, but maybe my implementation is wrong.
Any ideas on how to pass this along to the modify subroutine?
Thanks!
Dave
My database is set up so that a default user can view all records without loggin in. There is a modify/add button that really only takes them to a login screen using
Code:
<A HREF="$db_script_url\?modlog=1">Add/Modify My Listing</A>(more on the \?modlog=1 in a second)
After a user logs in, they are automatically taken to an add screen if they don't already have a record in their name, on the home screen if they do. What I tried to was pass a switch in the static link to login in that would be pass along by means of hidden fields using
Code:
<input type=hidden name="modlog" value="$in{'logmod'}">in the login form. So far, everything works. The variable logmod=1 is passthrough the system until it gets to:
Code:
if ($in{'modlog'} eq '1') {&html_modify_form($db_key{\*}); return;}Take place to rediect them to the modify_form, while passing along the DB key. (And not the modlog variable). The only problem is that I think my code for passing the DB key is incorrect. I get a message saying that no search was defined. That's because I only need the key to be passed to bring back a valid search.
I think my logic in this is correct, but maybe my implementation is wrong.
Any ideas on how to pass this along to the modify subroutine?
Thanks!
Dave