Need to submit a loging form via the url bar --uses validation

Greetings,

I’m trying to send the logging values to a login page via the url bar, for example the address is http://somedomain.com/login.asp, this form has a user name field and a password field with a submit button, I want to tell this page the values to place in those fields and then to submit the form, I know that I can tell it the values as ?userid=value1&password=&value2 but I don’t know how to tell it to submit it, this page uses a validation script that can only be called by submitting the form it self.

Thank you guys/gals for any help you can provide me with

instead of using “post” as submit form method, use “get”.

how would the syntax look on the url bar? somedomain.com


<form method="GET" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<input type="text" name="uname" value="<?php if(isset($_GET['uname'])) { echo $_GET['uname']; } ?>" />
<input type="text" name="pass" value="<?php if(isset($_GET['pass'])) { echo $_GET['pass']; } ?>" />
</form>

Then if you have a url like

http://www.you.com/index.php?uname=WhatYouWant&pass=WhatYouAlsoWant

the form fields will automatically be filled in.

You could also do the same thing using $_SESSION variables, and then you would have a lot more security and flexibility.

Sorry, I wasn’t precise…

What djheru said will work. :slight_smile:

Sorry, I think I missed explained. let me give you my situation.

I my work consists of using lots of different programs to support my company’s products, the issue is that all those programs are password protect. I have the password for all of them how ever, I was trying to use a small HTML page created by me that would allow me to fire up the program (webbase sites) and then tell the site my user id and password and have it log me in directly so I don’t have to be entering the password every time I open it (sessions time out on them in about 5 minutes)… I managed to program the links to half of those programs so that it logs me in right away by me passing the proper userid and password values, however the other half of the programs are not so straight forward when submitting the login information for authentication, the are calling javascript functions within the page to authenticate the login form, I believe it’s autogenerating a temp key for every session so I really need to do the submit via the website itself. any thoughts?.

I know this is a long explanation but I believe it’s needed… please help anyone

thank you all

If you are referring to web applications that you use where you have to log into their website in order to access what you need, you wont be able to pass the username and password values indirectly (without filling in the login form) unless the site is designed to allow it. I am suprised that you were able to successfully log in to so many of them by just entering your username and password into the query string. I’m no security expert, but that seems pretty risky.

Well I actually did not just told it here is my user name and password, I actually sent the variables to the place the form itself would send it if I was to manually press the submit button, the other sites have internal validation that can not be bypassed.