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.
Dipankar BiswasPosted Mar 16, 2016, 11:51 PM
"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});029030Amit KumarPosted Mar 9, 2016, 3:37 AM
arijit karmakarPosted Mar 9, 2016, 2:38 AM
arijit karmakarPosted Mar 9, 2016, 2:38 AM
Amit KumarPosted Mar 9, 2016, 12:14 AM
Rajeev PunhaniPosted Mar 8, 2016, 11:43 PM
Hi Arjit,
In php we have header function use that.
If the above solution is helpful then,accept the answer.
arijit karmakarPosted Mar 8, 2016, 6:18 AM
Rajeev PunhaniPosted Mar 8, 2016, 5:20 AM
Hi Arjit,
In php only after generating pdf you can redirect to new page.