Hey all you guys at DaniWeb! I have tried my hand at what I guess is Ajax, with a PHP script to execute it. The page itself renders and the form works, but the login script is not working. I'm not sure what is wrong, although I'm sure I messed something up. The code should post the user input to itself, check if the form is being posted to itself, and gives the user an answer whether or not he got the password correct. The password and username are hard coded. Here is the code:
You must write your php password verification code at the end of page.
Your div tag is rendered at the end of your code. So if you want to set innerhtml in div tag, you must do it after div is rendered on the browser.