File directory to be clear to avoid changing the path trouble
Enter the login page code
chuli.php Code
Home Code
getdate.php Code
fasong.php Code
I'll talk to you about the process.
Enter the login.html page (the account password is passed to Chuli. PHP inside is: Connect the database than the account password is correct if the correct jump to shouye.php if failed to return to login. PHP)
Go to the shouye.php page (a simple form, then the AJSX to getdate.php request)
enter getdate.php (connect to the database, according to type carry the value to find Wsitch the corresponding section of the branch statement, the corresponding information is queried according to the SQL statement This time the information is an array then array to string The returns shouye.php (there is a process in the home page to add a callback string to an array to the page String to array ) Click send message jump to fasong. PHP (type carry the value to find getdate.php inside wsitch Branch statement insert data in return to shouye. PHP )
20180826 optimized version of the message board PHP Ajax html CSS JS JQ