PhoenixDown
Programmer
I would like someone to please make a login section for my perl script. The one I currently have is not that good and I need a better one.
Right now, my username and password file looks like this:
%admin_profile = (
"username" => "password",
);
1;
I would like this script to NOT use cookies, but it doesn't matter.
On my script right, now people can type in the full address (admin.cgi?action=somthing) and get access. I would like the script to redirect people to the admin.cgi file when they do that.
Also, for example; when someone types an invalid subroutine such as admin.cgi?action=asdffdsa they get an internal server error. I would like that to be fowared to admin.cgi or have an error message like That sub routine does not exist or somthing.
Thank you very much. ;-)
Right now, my username and password file looks like this:
%admin_profile = (
"username" => "password",
);
1;
I would like this script to NOT use cookies, but it doesn't matter.
On my script right, now people can type in the full address (admin.cgi?action=somthing) and get access. I would like the script to redirect people to the admin.cgi file when they do that.
Also, for example; when someone types an invalid subroutine such as admin.cgi?action=asdffdsa they get an internal server error. I would like that to be fowared to admin.cgi or have an error message like That sub routine does not exist or somthing.
Thank you very much. ;-)