Using PHP cURL to update and submit a form

I've hit a brick wall trying to login to an ssl site to update fields of a form and submit, mainly because(i'm guessing) it has a load of javascript within it and also a several redirects at and after login page. I have managed to come to the page after login and which lists my purchased domains, but when i make cURL fetch the dns manager link at this point it shows me the login page again. Basically im trying to update my A(IP Address) record for izzfx.com everytime my isp changes my ip address. this php script would run in bg with php-cli and evry 10 secs or so check my ip address through a website that returns your external ip address and if its different than the one that was previously recorded, auti login to dnsmanager and update values of A Address Record form and submit.

I was wondering if u guys could asist me in suggesting a different approach to this problem.

I've hit a brick wall trying to login to an ssl site to update fields of a form and submit, mainly because(i'm guessing) it has a load of javascript within it and also a several redirects at and after login page. I have managed to come to the page after login and which lists my purchased domains, but when i make cURL fetch the dns manager link at this point it shows me the login page again. Basically im trying to update my A(IP Address) record for izzfx.com everytime my isp changes my ip address. this php script would run in bg with php-cli and evry 10 secs or so check my ip address through a website that returns your external ip address and if its different than the one that was previously recorded, auti login to dnsmanager and update values of A Address Record form and submit.

Can you post the code then explain the issue. It will be easier for everyone.

hey, sorry. here it is and the website with the current code is at http://izzfx.com/clientupdate if needed. it prints out 2 pages in 1 run. as u can see at the bottom it never proceeds forward as expected (by me of course).
first my index php has

I've hit a brick wall trying to login to an ssl site to update fields of a form and submit, mainly because(i'm guessing) it has a load of javascript within it and also a several redirects at and after login page.

I think you missing something. I don't think you post the right file?

Since I feel you don't really know what I'm talking about here is a link of an example of CURL: