Access an account using a php script

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
Jean Luc
Forum Newbie
Posts: 2
Joined: Tue Nov 16, 2010 3:03 pm

Access an account using a php script

Post by Jean Luc »

Hi, i'm working on a php script that allows me to enter into an account and show me some characteristics i want to know.
To access the account i need to fill in a form. My question is: how can i make the login using a php script and the username and password for the account? Thanks in advance
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Access an account using a php script

Post by califdon »

I think you are asking how to create a login script using PHP. This is a very common requirement and there must be thousands of tutorials on the web, showing how to do this. Try searching Google for php login script tutorial.
Jean Luc
Forum Newbie
Posts: 2
Joined: Tue Nov 16, 2010 3:03 pm

Re: Access an account using a php script

Post by Jean Luc »

Many thanks for the answer, i will try to explain my idea more clearly.
I have an account of a bookmaker and i can access it by entering username and password in the login page. After doing that, i can get, for example, the earning amount of the account.
What i want to do is making the login without entering username and password but using a php script in order to get the html of the web page where the earning amount is showed.
Thanks again for your time
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: Access an account using a php script

Post by mikeashfield »

I don't know about anybody else, but it sounds to me like you're trying to do stuff you shouldn't. If this were your site it's obvious that you would know how to query your data to retrieve values where a condition is met.
Post Reply