adi_c_adi Posted February 5, 2006 Share Posted February 5, 2006 HelloI display a button in my html page, and i want when pressed to run a php code that will change an sql database, WITHOUT a new winodw opening, can it be done?I mean to run some php code with out the user will see any affect on the explorer window.?THANKS! Quote Link to comment https://forums.phpfreaks.com/topic/3324-run-php-with-no-a-new-winodw-opening/ Share on other sites More sharing options...
Humpty Posted February 5, 2006 Share Posted February 5, 2006 Only new but I think the only way to do it is to use Java.to either a) perform the query required or if possibleb) to 'include' the php file when the button is pressed, but it may be too late to do that after the page is loaded first time.....just suspisions.... Quote Link to comment https://forums.phpfreaks.com/topic/3324-run-php-with-no-a-new-winodw-opening/#findComment-11336 Share on other sites More sharing options...
fenway Posted February 5, 2006 Share Posted February 5, 2006 You can do this the old-fashioned way (open an IFRAME) or the new way (using XMLHTTPRequest) -- but what does this have to do with MySQL? Quote Link to comment https://forums.phpfreaks.com/topic/3324-run-php-with-no-a-new-winodw-opening/#findComment-11347 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.