I need a javascript for automatic login to a admin panel! My need is to execute a script (with username and password) so that it automatically logins to admin panel SimplyI need a script by which the button in the form should be clicked automatically!
yes I tried this but it did n't work where should I use it? I have form like this in the .php document When I execute this php file the form should automatically submit it to the admin page what I need to do now?
How many forms do you have on this page? It should work anywhere, as it submits the form when the window finishes loading. Also, this may be a silly question, but did you put <script> tags around the code?
My code works, but you have to change the name of the submit button. It's causing a conflict. You can just change the first letter of "submit" to a capital letter. NAME="Submit" Code (markup):
Yes it works fine but I need to upload the file to the real server! But I need some thing like this when I execute A(a script) from my server It should automatically login into my mail box!!(at Server B) Is it possible?
And you want this to happen without leaving the page on server A? You can do this with PHP and cURL for example. Or a hidden frame. Depends on what you want to do once you're logged in. Do you want to extract any data or just log in and that's it?