Page 1 of 1

login in a webpage using php

Posted: Sat Mar 21, 2009 10:27 am
by srdva59
hi,
i want login in a page using the php
how can i do that?
thanks for your help :)

Re: login in a webpage using php

Posted: Sat Mar 21, 2009 10:30 am
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.

Re: login in a webpage using php

Posted: Sun Mar 22, 2009 7:31 am
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 :)

Re: login in a webpage using php

Posted: Sun Mar 22, 2009 10:13 am
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.

Re: login in a webpage using php

Posted: Sun Mar 22, 2009 10:24 am
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.