How can I redirect to a thank you page and post data to different url?