I hope this is the right place for this question, but if it's not, my apologies up front.
Basically what I'm trying to do is pass data using GET METHOD to an external file/page while directing the user somewhere else. The chronology is as follows:
1. User submits web form. 2. Form is processed by a PHP script on the same site using POST METHOD. 3. After data is run through some logic filters, it is inserted into our local DB. 4. However, before sending the user on to the thank-you.php page, we need to send certain data to an external page/file that is managed by an external client site. They want that data sent via GET METHOD (eg. [sample.com...]
With my limited experience in PHP, I would only know how to send this on using the header() function. I don't know how to pass data using GET METHOD without sending the user as well. After the user submits the form, they need to end up on the thank-you.php page. Not on some external site. I think this can be done with AJAX, but I don't know AJAX and if there's a way I can do it with PHP server-side, I'd prefer that.