execute login through php file

Discussion in 'PHP' started by martinvidic, Oct 25, 2011.

  1. #1
    Hi there.

    I have this code here:
    <form name="login" method="post" action="http://192.133.1.1:5280/">
    <input type="hidden" name="accept_terms" value="yes" />
    <input type="hidden" name="redirect" value="http://www.domain.com">
    <input type="hidden" name="mode_login">
    <input type="image" src="img/btn_LOGIN.png">
    </form>
    Code (markup):
    And I would like to put the same thing in a php file.
    But without a button.
    So when the php file is executed, you get logged in automatically and don't have to click first.
    I want to do that, because the php file will be executed through flash.

    Does anybody know how to do that?
    Thanx
    Martin
     
    martinvidic, Oct 25, 2011 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Check the headers when loggin in at your website, the example made doesn't work!

    You can login yourselve by using php.net/curl and using the headers you got from the original login.
     
    EricBruggema, Oct 26, 2011 IP