Orionsbelter Posted May 13, 2011 Share Posted May 13, 2011 is it possible to run two php scripts form a html form?, or is it possible to run a php script inside a php script without using include or require functions? Quote Link to comment https://forums.phpfreaks.com/topic/236353-html-form-can-i-action-two-php-scripts-at-the-same-time/ Share on other sites More sharing options...
requinix Posted May 13, 2011 Share Posted May 13, 2011 is it possible to run two php scripts form a html form? No. A form can only have one action. or is it possible to run a php script inside a php script Yes. without using include or require functions? Not really. What's wrong with include() and require()? Quote Link to comment https://forums.phpfreaks.com/topic/236353-html-form-can-i-action-two-php-scripts-at-the-same-time/#findComment-1215157 Share on other sites More sharing options...
markjoe Posted May 13, 2011 Share Posted May 13, 2011 Without using include functions, you could use cURL in the first script top call the second script. Any more info possible on what you're actually trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/236353-html-form-can-i-action-two-php-scripts-at-the-same-time/#findComment-1215158 Share on other sites More sharing options...
anupamsaha Posted May 19, 2011 Share Posted May 19, 2011 It is possible to trigger two PHP scripts from one form, even from one click event. I have done this for click tracking for a site. This can be done through JavaScript, specifically jQuery AJAX. Quote Link to comment https://forums.phpfreaks.com/topic/236353-html-form-can-i-action-two-php-scripts-at-the-same-time/#findComment-1217738 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.