jQuery function and redirect to page at a single btton click

Mar 8 2016 4:52 AM
I have a html form, in which i call a php page. I want to insert the form values into table and if it is success then it will redirect home page as well as generate a pdf file based on the form value. i have pdf generate code as well as the insert code, But i am not able to to call both jQuery function and PHP at a same time.
 
i want to redirect a html page and generate a pdf in a single button click. 
How will i do it in a single submit button click.
Thanks in advanced.



Answers (8)