c# programmer needs PHP help. (Login forms)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alexandergre
Forum Newbie
Posts: 4
Joined: Sat Apr 11, 2009 10:45 am

c# programmer needs PHP help. (Login forms)

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: c# programmer needs PHP help. (Login forms)

Post by requinix »

So how much HTML do you know? Know what the <form> element is?
alexandergre
Forum Newbie
Posts: 4
Joined: Sat Apr 11, 2009 10:45 am

Re: c# programmer needs PHP help. (Login forms)

Post by alexandergre »

tasairis wrote:So how much HTML do you know? Know what the <form> element is?
yes I do. what about that?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: c# programmer needs PHP help. (Login forms)

Post 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.
alexandergre
Forum Newbie
Posts: 4
Joined: Sat Apr 11, 2009 10:45 am

Re: c# programmer needs PHP help. (Login forms)

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: c# programmer needs PHP help. (Login forms)

Post 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.
alexandergre
Forum Newbie
Posts: 4
Joined: Sat Apr 11, 2009 10:45 am

Re: c# programmer needs PHP help. (Login forms)

Post 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.! :)
Post Reply