PDA

Click to See Complete Forum and Search --> : how to open other site login


manmad
Sep 15th, 2008, 08:09 AM
How can i go to this page
http://m.mig33.com/member2/t.php?cmd=joinchat&room=mig33&showpart=1
on my own page?? need username and password to go this page. i want to go like this...

here is my user name and password to check the page.
username: vbmanmad
password: vbforum

i have created form like this to go that page.


<html>
<body>
<center>
<h1>Checking Room Participents</h1>

<form action="http://m.mig33.com/member2/t.php?cmd=joinchat&room=mig33&showpart=1" method="post">
Username: <input type="text" name="username" size="20" value=""><br>
Password: <input type="password" name="password" size="20" value=""><br>
Room Name to view participents: <input type="text" name="roomname" value="mig33" size="20"><br>
<input type="submit" value="view">

</form>

</center>
</body>
</html>


how can i save user name and password and go to that url...??

Satal Keto
Sep 19th, 2008, 01:56 PM
If you set the value parts of the <input>'s then have some JavaScript which is run onload which submits the form then it will do what you need if I understand your requirements correctly.

So all you need is to store the username and password you want to use.
Then have a php script which echo's (obviously replacing [username] and [password] appropriately)

<html>
<body onload="submitform()">
<center>
<form action="http://m.mig33.com/member2/t.php?cmd=joinchat&room=mig33&showpart=1" method="post">
Username: <input type="text" name="username" size="20" value="[username]"><br>
Password: <input type="password" name="password" size="20" value="[password]"><br>
Room Name to view participents: <input type="text" name="roomname" value="mig33" size="20"><br>
<input type="submit" value="view">
</form>
</center>
<SCRIPT language="JavaScript">
function submitform()
{
document.form.submit();
}
</SCRIPT>
</body>
</html>

Then when the php webpage loads the form will be submit and then you'll get logged in.

Hope that helped :)

manmad
Oct 31st, 2009, 01:27 AM
still doesnt work this, i think this need phpsessid & sid to go (someone told me abt this)! any help?

Nightwalker83
Oct 31st, 2009, 01:45 AM
still doesnt work this, i think this need phpsessid & sid to go (someone told me abt this)! any help?

Which part of the code doesn't work? The code Samba Neko posted puts the user name and password in the log in form on another website.

kows
Oct 31st, 2009, 11:40 AM
SambaNeko didn't post in this thread. and the guy that did post just posted a script that auto-submits the same form that the original poster already included.

anyway, I've no idea what you really want. but this is a website that logs you into their system; if you want to be able to log into this website from your website, then copy their login form and see if that works. you could also just place their website login into an iframe on their page. none of this has anything to do with php.

Nightwalker83
Oct 31st, 2009, 07:01 PM
SambaNeko didn't post in this thread. and the guy that did post just posted a script that auto-submits the same form that the original poster already included.


Oops, I got them confused! The original poster doesn't make it very clear what he is aiming to do though. It sounds similar to what I did for a flash project with php but again I am not quite sure.