Click to See Complete Forum and Search --> : Please Help, Using External site forms


vbprog40
11-17-2003, 04:53 PM
I have a page and in it is a FRAME. Now, in the frame is a external website page which has a form in it I CAN NOT EDIT.

I am a administrator to user accounts. I want to give employees access to a page without telling them my password. So I wanted to now if I can Auto submit the password, to the form.

I wanted to know if there is a way I can input text in the exteral form. (SO....if i Clicked a button on My part of the frame it will transmit to the frame with the external site form.)


This is the form on the external site:

<form method="post" name ="form" action="postme.php">
Login Name: <input type="text" value="" name="userid">
Password: <input type="password" value="" name="password">
<input name=submitbutton type=submit value="Authenticate">
</form>

Thank you very much!
Chris

Jona
11-17-2003, 05:31 PM
You could try it, but you will get an "Access Denied" error, because you cannot execute code cross-server even if you are using frames.

I would suggest creating multiple accounts and passwords for each user, rather than giving out your password.

[J]ona

vbprog40
11-17-2003, 06:52 PM
Thats the thing I cant create new users. :( Im only a sub-administrator.

Im not to good at Javascript, But, If I was to try the cross-server posting, what would the code look like?

And finally, If this doesn't work, Do you have any other sudjections. (I have to use my user/pass :rolleyes: )

Thank You

Jona
11-17-2003, 07:02 PM
JavaScript wouldn't work in this situation. You would have to either give out your password or create a script such as PHP and store an encrypted password, then validate that password as a new password for those with which you wish to provide access. So basically, you're going to need to set up some sort of server-side script to process this... But not even that will work cross-server--you will need access to the server that the form is uploaded to.

[J]ona