anatak Posted February 5, 2014 Share Posted February 5, 2014 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 Link to comment https://forums.phpfreaks.com/topic/285953-ajax-with-php/ 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 Link to comment https://forums.phpfreaks.com/topic/285953-ajax-with-php/#findComment-1467796 Share on other sites More sharing options...
anatak Posted February 5, 2014 Author Share Posted February 5, 2014 thank you will look into that. Link to comment https://forums.phpfreaks.com/topic/285953-ajax-with-php/#findComment-1467810 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.