Things like drag-and-drop are client-side issues, and as such cannot be addressed by a PHP script running on the server. You might use Flash for the user interface, then have it communicate with PHP/MySQL scripts on the server side for recording user info, scores, etc., as well as storing the quiz data used to populate the Flash (or JavaScript, etc.) user interface.