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.

Rajeev PunhaniRank #551 · 4.4K reputationPosted Mar 8, 2016, 12:20 AM EST
Hi Arjit,
In php only after generating pdf you can redirect to new page.
arijit karmakar7 reputationPosted Mar 8, 2016, 1:18 AM EST
Rajeev PunhaniRank #551 · 4.4K reputationPosted Mar 8, 2016, 6:43 PM EST
Hi Arjit,
In php we have header function use that.
If the above solution is helpful then,accept the answer.
Amit KumarRank #459 · 5.4K reputationPosted Mar 8, 2016, 7:14 PM EST
arijit karmakar7 reputationPosted Mar 8, 2016, 9:38 PM EST
arijit karmakar7 reputationPosted Mar 8, 2016, 9:38 PM EST
Amit KumarRank #459 · 5.4K reputationPosted Mar 8, 2016, 10:37 PM EST
Dipankar BiswasRank #992 · 2K reputationPosted Mar 16, 2016, 7:51 PM EDT
"submit"value="One click 2 event"id="page1"class="page2">020021022$("#page1").click(function(){023window.open('page.php','_self');024});025026$(".page2").click(function(){027window.open('page2.php','_blank');028});029030