php open new window with sql result

Codes here !

Moderators: egami, macek, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Fri Apr 25, 2014 10:10 pm

a combination of JQUERY and AJAX would be your best bet on that one. Any time you want to interact with the user, you want to use asynchronous scripting using jquery or javascript to handle the input. One thing you can do is simulate the new window with a styled div that appears when necessary using jquery toggle, here's a demonstration of hide/show with toggle: http://www.w3schools.com/jquery/eff_toggle.asp

Then once they've selected something in the window, you can use an ajax post to send a request to your server, and then receive and display the response without even having to leave the page. here's an example of that: http://www.w3schools.com/jquery/jquery_ ... t_post.asp

Post Reply