beedgehieri
New Member
Client has a sign up form that is included across many domains which posts back to mother site. We have been, up until now, using the mother site's Thank You page for all requests.Client would like to now allow affiliates to populate a form field with \[code\]$thankyou_url\[/code\] and have use redirect to the affiliate site's designated thanks page.As there are an ever-changing variety of responses we give to these sign-ups we want to build some HTML and post it to the supplied thanks page for display.I had thought I would build the post in cURL but I am finding what I do there is fetch back their populated response page with its relative paths. Is there a way to use a different cURL header to send user with post we built or is there some other method I should use?Current code:\[code\]<?php$url = $remote_thanks_url;$fields = array( 'html' => $our_response );foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }rtrim($fields_string, '&');$ch = curl_init();curl_setopt($ch,CURLOPT_URL, $url);curl_setopt($ch,CURLOPT_POST, count($fields));curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);$result = curl_exec($ch);curl_close($ch);?>\[/code\]