AE117 Posted December 28, 2009 Share Posted December 28, 2009 I have a button that when clicked I want it to run a php file. I dont want it to refresh the page i dont want it to open it in a new window I just want to run it, is there a way to do this thanks. Im good at php just really suck with javascript Quote Link to comment https://forums.phpfreaks.com/topic/186474-onclick-run-php-file/ Share on other sites More sharing options...
trq Posted December 28, 2009 Share Posted December 28, 2009 You'll need to use ajax. A simple way to do so is to use a library like jQuery. Quote Link to comment https://forums.phpfreaks.com/topic/186474-onclick-run-php-file/#findComment-984672 Share on other sites More sharing options...
AE117 Posted December 28, 2009 Author Share Posted December 28, 2009 Kinda what I thought. I dont use jQuery though but ill move this to a ajax forum. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/186474-onclick-run-php-file/#findComment-984678 Share on other sites More sharing options...
trq Posted December 28, 2009 Share Posted December 28, 2009 If you don't want to use a library like jQuery take a look at this simple tutorial written by the guy who original wrote php. Quote Link to comment https://forums.phpfreaks.com/topic/186474-onclick-run-php-file/#findComment-984680 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.