Embedding Log in in Flash

ladymindy

Joined: 2003-06-27
Posts: 8
Posted: Mon, 2003-09-29 18:51

I have been trying to embed a login for users inside flash so that if they click on the link inside flash it automatically sends the username (uname) and password (gallerypassword) to the server.

I set the variables.
I use getURL with "get" as the method(so I can monitor the variable passing)
I used and the login.php for the gallery as the action.
I set it to open in a new window.
Upon playing the movie, and clicking the link, I get the login screen with the uname and gallerypassword identified in the url (so I know it is passed) But the form has theusername in the username field, and no password in the password field. No other url opens to enter the gallery.

If I use an additional statement to open the gallery/index.php it is not logged in. If I use this statement to set the uname and gallerypassword it is not logged in.

What am I doing wrong?
Any suggestions would be wonderful!

 
ladymindy

Joined: 2003-06-27
Posts: 8
Posted: Tue, 2003-09-30 20:15

I have set up a loginnew.php to test to make sure my variables are passed. I can print out $uname and $gallerypassword and they are intact. So the question is how do I use these in this login.php to make them work?

Any help would be greatly appreciated.

 
samlutley

Joined: 2003-11-10
Posts: 3
Posted: Mon, 2003-11-10 02:14

I am having a similar problem.
I put a form on my homepage so that people can login from there:

***************************************************
<form action="http://www.utley.org/gallery/login2.php" name="login_form" method="post">
<input type=hidden name="" value="">
Username
<input type="text" size="10" name="uname" value="">
Password
<input type=password size="10" name="gallerypassword">
<input type="submit" name="login" value="Login">
</form>
***********************************************

I added this line in the login.php file between <head> and </head>:

************************************************
<?php echo '<meta http-equiv="Refresh" content="0; URL=http://www.utley.org/gallery">' ?>
***********************************************

It kind of works, but I get an error:
" A Runtime Error has occurred.
Do you wish to Debug?

Line: 13
Error: 'opener.location' is a null or not an object
"

I can click NO and it will take me to the gallery page logged in and all but having to click NO is kind of annoying.

Any suggestions on how I can fix this?

Thanks