Hi there,
I have a client who has a form on a php page that posts data to a script. That script process the post data and generates a pdf which comes back and is automatically downloaded in the user's browser. They would like to redirect the user to a separate page after this process is complete. I have tried redirecting by adding :
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
to the bottom of the php script but I don't think this is working b/c the user doesn't actually go to that script page ever. I have also tried incorporating a redirect with jQuery based on the submit button, but it never seems to execute...it is as if the pdf download script prevents the jQuery redirect from occurring.
I tried utilizing ajax to submit the form data to the script and was then going to redirect after a successful response, but I don't think the form data is being sent in the proper format and that seems like a convoluted solution to a simple problem. Any ideas? Or should I stick with the Ajax/jQuery approach?
Thanks!