how do i login to site and stay logined?( i meant logged in)
fore example i have a htm file with a text box named stxt that sends the form to a php file called login.php AND ALL OF THIS IS WITH POST METHOD

and when i logged in i want to fill an other form with a text box named lgtxt that will be sent to a php file named check.php

i already know thing like urlencode and urlopen ?
can you do his project for me?

i have to mention that the site i want to login to sets some cookies and i have no idea about the cookies,what do they do that prevent me from logging in,and how to solve this problem