I'm doing right now an php project. I want to do two actions with only one submit button, the button have to open two php pages. Thanks for your help
Asked
Active
Viewed 47 times
1 Answers
0
"Opening" pages is done by your browser - not by your php scripts. Therefore you need to do this on the client side. The most obvious way to achive this is with javascript. You can open a new tab/window by javascript as explained here:
JavaScript open in a new window, not tab
If this new page needs some data from your form too, you can send the form data as URL-Parameters (GET-request). Or as POST-request which is a bit more tricky with pure javascript:
By using jQuery this will be much easier:

Arno
- 447
- 4
- 12