anatak Posted February 5, 2014 Share Posted February 5, 2014 (edited) I read a basic ajax tutorial and could get it to work more or less. all the files that the ajax loads are .html files. The Ajax index file is also a .html file. Will it be possible to load php files with ajax ? And is is also possible to have a index.php file instead of the current index.html file ?I would like to have a login page and after logging in the site should track the session The login page will have to display a message if the user is already logged in or made a mistake in logging in (bad username / password combination) The login page would be the only php page that has to be loaded. If having to load 2 different types of pages (html and php) is not possible are there any drawbacks at renaming all the html files into php files ? thank you Edited February 5, 2014 by anatak Quote Link to comment Share on other sites More sharing options...
PravinS Posted February 5, 2014 Share Posted February 5, 2014 you can check this example http://www.w3schools.com/php/php_ajax_database.asp Quote Link to comment Share on other sites More sharing options...
anatak Posted February 5, 2014 Author Share Posted February 5, 2014 thank you will look into that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.