PHP - curl & posting (and sending the user) to a page

Hi peoples,

I’m trying to find some information on php and the curl library, but am not having much finding what I’m after.

What I need a script to do is load up, grab some information in a database and post this information to a url, but actually follow the url, so if im posting var1 to the url, it would be as if I had a html form that posted to that url.

Does anyone have any ideas? :confused: