hi all I would like to get the mouse focus (which text field the mouse is on ) using PHP, for example if the form containe some text field : username,password,country,city and TEL after I submit the form I need to get if the mouse is on username or password or ..etc. So is there a way using PHP thank 4 ur time
What are you trying to accomplish? When someone submits a form the focus is going to be on the submit button. Javascript has a complete set of event handlers for mouse activity.... on focus, on click etc... W3schools has a good javascript reference available for these.
As explained above, you will need to use Javascript or Ajax (if you want to do it interactively). The Javascript code to do such action is: document.getElementById('FIELDID').focus();