Forums
This topic is locked
opening new window from a form
Posted 30 Nov 2007 22:59:36
1
has voted
30 Nov 2007 22:59:36 Javier Castro posted:
Hi Guys, I have 3 pages.
openwindow1.asp
openwindow2.asp
openwindow3.asp
In openwindow1.asp I have a login form that sends the info to openwindow2.asp where a script confirms if the login info is correct then allows the user to see the content of openwindow2.asp, if the info is not valid then the script sends the user to openwindow3.asp.
The problem:
I want the login form on openwindow1.asp to open openwindow2.asp in a new window and execute the script accordingly. However, everytime that I try opening openwindow2.asp in a new window the scripts keeps sending me to openwindow3.asp rather that openwindow2.asp as if the login were incorrect.
How can I still open a new window and ge the validating script work as well.
The script I added is the script on openwindow2.asp that validates the login info sent from openwindow1.asp
<%
If Request.Form("username" = "member" AND Request.Form("password" = "member" Then
%>
body of document
<% Else %>
<%
Response.Redirect("openwindow3.asp"
End If
%>
If anyone can help me with a work around or suggestions would be fabulous.
Javier.
Edited by - am7555 on 01 Dec 2007 00:08:19
Replies
Replied 26 Dec 2007 15:37:28
26 Dec 2007 15:37:28 dave blohm replied:
What method are you using to open the new window? Sounds like empty values are getting passed from the form on page one to the code on page two. Are the form fields named the same as the request.form objects on the recieving page? Is the form method set to POST?
- Doc
Progress is made by the discontent.
- Doc
Progress is made by the discontent.
Replied 31 Dec 2007 03:01:21
31 Dec 2007 03:01:21 Javier Castro replied:
Thanks for the reply Dave. As you point out, the problem was that I was not passing values correctly. However, since I found no timely help here I went to another forum and got various ideas to debug as well as to accomplish the same by other means. Nevertheless, I am grateful to you for taking the time to read and reply. Cheers to you and happy New Year.
Javier
Javier