Am about to include a log in system to my web Site but i don\'t think it\'s a good idea for security to use ajax to send a and receive confirmation from an external php scri
AJAX is a as safe as a plain old form + refresh page. In the end it's always an HTTP request. Why do you think that ?
However, from a usability point, make sure that people that disable javascript can still log into your app.
Be sure to use POST method to send your AJAX request, as GET requests, and their params (such as, let's say, plain-text password) might end in your web server logs, unles you are using HTTPS.
As Grégoire pointed it out:
Also from a usability point, autocomplete won't work for AJAX forms on chrome, and for AJAX-loaded forms in firefox. The browsers won't even propose to remember your password