yssirhc
04-15-2009, 11:30 AM
I have a log-in page that gets the user ID from the form
$submittedUser = $formHash{"user"};
Within that script there's a subroutine that prints an html page to redirect the user to the main page.
<meta http-equiv="REFRESH" content="1;url=mainPage.cgi">
I'm trying to figure out how to pass that user ID variable to the main page's script so that I can keep track of who submitted what information.
So, for example, on the main page it could then greet the user with a "Welcome, $submittedUser".
I suppose if instead of having that redirect page, I just printed the main page from within that same script for logging in, I could then use that user ID variable, but it would be better to keep the scripts separate.
Any ideas on how to do this?
$submittedUser = $formHash{"user"};
Within that script there's a subroutine that prints an html page to redirect the user to the main page.
<meta http-equiv="REFRESH" content="1;url=mainPage.cgi">
I'm trying to figure out how to pass that user ID variable to the main page's script so that I can keep track of who submitted what information.
So, for example, on the main page it could then greet the user with a "Welcome, $submittedUser".
I suppose if instead of having that redirect page, I just printed the main page from within that same script for logging in, I could then use that user ID variable, but it would be better to keep the scripts separate.
Any ideas on how to do this?