Hi... Is it possible to insert into a database using Javascript I will explain the purpose There is a login page and in the database there is a boolean field to confirm whether a user is logged in or not So is it possible to add a entry to the database when a user click the submit button of the login form... Please answer my question... Jodil Davis Webmaster
The short answer is no. (This should be posted in Design&Development>Programming>javascript BTW). Longer answer is AJAX. Better answer is when the login is processed, have the processing script update that field. When and how to determine if a user logs off is another question.
Not without tying the script to a back-end programming language via XMLHTTPRequest (Ajax, or "XHR"). At which point you might as well just use a server-side programming language in the first place.