opening two pages with one html form - using perl



How do you submit form data to two separate pages with one html form?

I have one cgi script that looks in part like this:

# name of script is login.cgi
my $login = param('login');
my $username = ('usrname');
my $password = ('password');

if ($login eq 'Login')
{ #authenticate user and log user in if authenticated
} else
{ #display login form, default behavior
}

print <<html;
<form action="login.cgi">
Username: <input type="text" name="username" /><br />
Password: <input type="password" name="password" /><br />
<input type="submit" name="login" value="Login" />
</form>
html

When the user first arrives here, he gets the login form, enters his
username and password and submits the form. The form returns to the
same script, authententicates the user, and captures the username which
we use for other purposes.

We now have a need to send the script to ANOTHER cgi script, passing
the username, which will open in a new window. In other words, the
login script will exhibit the same behavior as at present, but a SECOND
browser window will open which will display the same username.

My first attempt used the javascript window.open() method but that
didn't work, and I don't have any idea for a second attempt.
Suggestions?

Thanks, CC.


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html

.



Relevant Pages

  • Re: PHP Protect and select script
    ... You MUST store somewhere the username password combination. ... You post the username/password to the receiving script where you ... you must somehow look up the username password combinations. ... So I don't need to check anything - exept the login name / password ...
    (alt.php)
  • Re: PHP Protect and select script
    ... You MUST store somewhere the username password combination. ... You post the username/password to the receiving script where you ... // In case you want your pages protected, use a session. ... So I don't need to check anything - exept the login name / password ...
    (alt.php)
  • Re: opening two pages with one html form - using perl
    ... you could just run the script via ... if ($login eq 'Login') ... username and password and submits the form. ... browser window will open which will display the same username. ...
    (comp.infosystems.www.authoring.cgi)
  • Re: VPN CMAK Login script issue
    ... It seems that when I login to my external workstation under a different ... username and password than username and password I authenticate with through ... I'm not able to map drives and am prompted for a password for each ... >> connects and then runs our login script in sysvol. ...
    (microsoft.public.isa.vpn)
  • Re: Hacker activity?
    ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
    (freebsd-questions)