I am trying to save the data that user submits from a form in my database before I post it over to the 3rd party website. How can I do this without using javascript?
well, its a simple HTML form with user's name, phone and email address. I need to post this over to the 3rd party website. BUT I want to validate the data that users enter before I actually send this data to the 3rd party. So i am doing HTTP post to my own page and if it validates, I need to somehow post this data (to the 3rd part) again. How do I do this?
yeah I can use CURL, but I need the browser to actually go to that 3rd party website after posting. Curl will call that page, but not redirect the browser to that page.
Then output a new (hidden) form that contains hidden fields with the data, and automatically submit it to the other site using Javascript. It's not a pretty solution, but can't think of anything else right now.