Page 1 of 1
c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 10:55 am
by alexandergre
ok, I built an app which a user can login to his profiles page through c#. but this app works only if you can login with username and password in the URL. ex:
Code: Select all
usernamer:password@members.example.com
or
Code: Select all
http://youtube.com/signup?username=USER ... on_login=1
the second one is for youtube. so if you change the USERNAME and PASSWORD with your own, they you are able to login to you profile page, only if you use a WebBrowser. in c# you need to do much more.
anyways.
this is the site im interested to find its login URL:
http://glosboken.se/pages/go.php?&language=en
Code: Select all
Username:<br>
<input name="username" class="inputText" type="text"><br><br>
Password:<br>
<input name="password" class="inputText" type="password"><br>
<input value="Log in" style="width: 100px;" type="submit">
Can someone help me with this?
thank you very much.
Re: c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 11:11 am
by requinix
So how much HTML do you know? Know what the <form> element is?
Re: c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 11:55 am
by alexandergre
tasairis wrote:So how much HTML do you know? Know what the <form> element is?
yes I do. what about that?
Re: c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 12:11 pm
by requinix
Well, I kinda figured that if you knew what a <form> was then you would have looked at the HTML source of that page and seen that it submits via POST to http://glosboken.se/loginCheck.php.
Re: c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 1:44 pm
by alexandergre
tasairis wrote:Well, I kinda figured that if you knew what a <form> was then you would have looked at the HTML source of that page and seen that it submits via POST to
http://glosboken.se/loginCheck.php.
So the username and pass are sent to logincheck.php. and that means I cant have login URL. right?
what can I do then any tips?
Re: c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 2:11 pm
by requinix
You may be able to still, if the loginCheck uses $_REQUEST to get the username and password. Otherwise you can't do it.
Re: c# programmer needs PHP help. (Login forms)
Posted: Sat Apr 11, 2009 3:43 pm
by alexandergre
tasairis wrote:You may be able to still, if the loginCheck uses $_REQUEST to get the username and password. Otherwise you can't do it.
So I read about $_REQUEST, $_GET and $_POST here:
http://www.alternateinterior.com/2007/0 ... quest.html
which was a great article.
I tried to download
http://glosboken.se/loginCheck.php but I failed. I get the go.php instead of loginCheck.php
I guess loginCheck cant be accessed.
So what can I do now?
maybe contact the admin and ask him if he can help me with this school project!
than you very much Tasairis.!
