
February 7th, 2005, 08:31 AM
|
|
Contributing User
|
|
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
|
|
|
passing form variables with java popup
Hi
Trying to login to a page so that it pops up rather than
opens in the same browser window.
This code works but opens in same window:
Code:
<form name="formz" method="post" enctype="multipart/form-data" action="https://www.mywebsite.com/login.cfm">
<div align="center">
<cfoutput>
<input type="hidden" name="username" value="#session.username#">
<br>
<input type="hidden" name="password" value="#getClient.password#"></cfoutput>
<br>
<br>
<input type="image" border="0" src="images/manage_res.jpg" name="Login">
</div>
</form>
This is a bit of javascript that opens a window and sure
enough, the window does open... but the variables aren't
being passed:
Code:
<form name="formz" method="post" enctype="multipart/form-data" action="javascript:MM_openBrWindow('https://www.mywebsite.com/login.cfm','pop','status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=500')">
<div align="center">
<cfoutput>
<input type="hidden" name="username" value="#session.username#">
<br>
<input type="hidden" name="password" value="#getClient.password#"></cfoutput>
<br>
<br>
<input type="image" border="0" src="images/manage_res.jpg" name="Login">
</div>
</form>
any ideas?
|