That may be the problem because currently, the input type button is not doing anything because you don't even have a JS event on it, but that's alright, try changing 'button' to 'submit'.
hope this works.
Also, how does how insert.php file know what the user typed in the forms?
Because, you have: mysql_query("INSERT INTO Login (Email_Address, Password) VALUES (email, password)");
and the "VALUES" are email, password, where are you getting these? Im assuming they are the 'names' in your HTML form, but that's not how it works. try this:
Code: Select all
// CONNECTION CODE HERE... $email = $_POST['email']; // << that right there is posting the HTML form's value and putting it in a variable called '$email' $password = $_POST['password']; // same thing here, but for the password // INSERT THE NEW INFORMATION HERE... mysql_query("INSERT INTO Login (Email_Address, Password) VALUES ($email, $password)"); // in the above line, the only thing changed in the variables in the VALUES section.
If you have any more problems, feel free to reply here.
Also, write down your code in the code tags given in this editor. Thanks
Hope this helped!