login in a webpage using php

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
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

login in a webpage using php

Post by srdva59 »

hi,
i want login in a page using the php
how can i do that?
thanks for your help :)
User avatar
deejay
Forum Contributor
Posts: 201
Joined: Wed Jan 22, 2003 3:33 am
Location: Cornwall

Re: login in a webpage using php

Post by deejay »

there are many ways to this. why not search for something like 'php secure login tutorial' then you can learn about it at the same time as putting the page together.
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

Re: login in a webpage using php

Post by srdva59 »

hi,
sorry i dont´ explain all.
i want login into a existing site and automate some functions like send data to the fields and send a submit.
i have found the curl function but so far i can´t login into a page.
some one have a sample how to do that?
thanks a lot for your help :)
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: login in a webpage using php

Post by jayshields »

It depends what page it is. You'll probably have to send some POST values across to the webpage, and maybe deal with sessions. Post your cURL function.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: login in a webpage using php

Post by php_east »

srdva59 wrote: i have found the curl function but so far i can´t login into a page.
you may wish to note that cURL does not imply/guarantee you can login into any page anywhere. there are many sites designed such that a simple cURL will simply not work.
Post Reply