mercredi 21 janvier 2015

Log-in/out to 3rd party website using PHP/JavaScript


Vote count:

0




Anyone have idea how to login (using PHP/JavaScript or etc.) to 3rd party website? I have login info (name and password) stored in my database.


Login of www.3rdparty.com looks like:


login of 3rd party website


And code of this login:



<div id="toplogin" align="right"><div id="us-login">
<form method="post" onsubmit="javascript:showLoading()" action=''>
<div class="us-username"><input name="l_name" type="text" class="us-input" alt="username" value="Name" onfocus="if(this.value=='Name') this.value='';" /></div>
<div class="us-password"><input name="l_password" type="password" class="us-input" size="10" alt="password" value="Password" onfocus="if(this.value=='Password') this.value='';" /></div>
<div class="us-login-button"><input onclick="submit();" name="image" src="/templates/3rdparty.gif" type="image" value="" /></div>
<input name="login" type="hidden" id="login" value="submit" />
</form>
</div>


Should I use iframe to get this login in my own site and than use any script to login? Or there is any other way (JavaScript/PHP script/libraries or etc.) to select login name and password from database and login to 3rd party website?



asked 1 min ago







Log-in/out to 3rd party website using PHP/JavaScript

Aucun commentaire:

Enregistrer un commentaire