Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Aug 2003
    Location
    scotland, edinburgh
    Posts
    176
    Thanks
    5
    Thanked 1 Time in 1 Post

    Login from differnt site

    I was just wondering can you log onto a site from somewhere else.
    So for exmple I want to login at something like www.controlpanel.com/login.php but I wanted to be able to log in via my site at www.mysite.com so could I put something like this at mysite.com and expect it to work

    at www.mysite.com I have
    Code:
    <form name="form1" method="POST" action="http://www.controlpanel.com/login.php"> 
      <input type="hidden" name="username" > 
      <input type="hidden" name="password"> 
    <input type="submit" name="sbutton" value="Submit" />
     </form>
    since the action is going to www.controlpanel.com would I be able to login from www.mysite.com

    Thanks

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Security

    I must strongly discourage such attempts; leaving the user name and password wide open and clearly visible in a web page is practically inviting in evil-doers. You would create a security leak the size of the Panama canal -with all the gates wide open.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Regular Coder
    Join Date
    Aug 2003
    Location
    scotland, edinburgh
    Posts
    176
    Thanks
    5
    Thanked 1 Time in 1 Post
    Yeah but the world is full of good peole that love each other very much. :P
    But seriously I dont understand how that causes a security problem, at which point are the username and password being shown. *Stops, Thinks and looks at the code*
    Oh wait I think I pasted the wrong code
    Code:
    <form name="form1" method="POST" action="http://www.controlpanel.com/login.php"> 
      <input type="text" name="username" > 
      <input type="password" name="password"> 
    <input type="submit" name="sbutton" value="Submit" />
     </form>
    There, sorry does that still cause a security issue? The user puts in his/hers login details and press submits.
    Should the user be able to log in easily from www.mysite.com and be loged in when they get to www.mycontrolpanel.com
    Assuming that the required fields names are called "username" and "password"

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    But why?

    Pffft... Okay, but I stil don't understand why. If a user does a request for the control Panel entry page, isn't a login dialog presented anyway? Or are you trying to offer a nicer form or page for the login process? I fear the last would require an alteration to said entry page, and I doubt if the owner of the page is waiting for that...
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It depends on the site, i know some people who used to do that. They had a page and you could log into your email account (yahoo, hotmail, etc) but they started having problems and shut it down. I don't know why...
    I think yahoo uses lots of javascript to kind of encrypt the password before it's sent and that would be hard to replicate.
    Tomorrow is the first day of the rest of your life... What have you done today?
    Tutorials
    Web: w3schools, htmldog General tips: Hardware, Networking

  • #6
    Regular Coder
    Join Date
    Aug 2003
    Location
    scotland, edinburgh
    Posts
    176
    Thanks
    5
    Thanked 1 Time in 1 Post
    Yeah what going to happen is that a user can select out of 5 control panels what they want to loginto. They just type in there username and password and select the panel they want to log into via a drop down list (PHP will be envolved at this point)
    This is so they dont need to remeber any links to the control panels they can just login at one place.
    I fear the last would require an alteration to said entry page
    What kind of alterations will be needed?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •