opening two pages with one html form - using perl
- From: "ccc" <cartercc@xxxxxxxxx>
- Date: Fri, 3 Mar 2006 10:32:11 CST
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
.
- Follow-Ups:
- Re: opening two pages with one html form - using perl
- From: Christopher F. Falzone
- Re: opening two pages with one html form - using perl
- Next by Date: Re: opening two pages with one html form - using perl
- Next by thread: Re: opening two pages with one html form - using perl
- Index(es):
Relevant Pages
|