I need some help in this.
I'm trying to make a $_POST into an external webpage's form. The idea is the next:
- the user enters to my webpage. www.caae.cl/encuesta
- the user enters a username and password (into my webpage)
- I submit into the external webpage's form (https://www.uc.cl), which i dont have control, the user and pw
- i check if the combination is correct
- i redirect the user into my webpages user's homepage
I have two points: first of all how do i make the submit through cUrl and the second one, I need to read the cookie of the external webpage to check if the user-password combo is ok
i would appreciate any help. Im working with php and curl.