i have added action value Registration file
Electronic Montessori Learning
You have to add connect.php
as your action
attribute value in your form :
<form id="RegisterUserForm" action="connect.php" method="post">
With action=""
in your form, nothing gets submitted. You need to tell it to call the connect.php
if you use the same page as action , you should copy the code in action.php on the page that contains form , or replace action="" with action="connect.php"
Your form doesn't know where to send its data to:
<form id="RegisterUserForm" action="" method="post">
should be
<form id="RegisterUserForm" action="connect.php" method="post">
If on clicking the Register button , php code appears on the page , then most probably it has nothing to do with your code. Please check if you are directly double-clicking the html file for your testing . Please execute it by entering the localhost page address in the browser instead.
Eg : http://localhost/registration.html
Now the HTML should be able to execute the PHP code. And your folder containing html and php file should be in XAMPP->htdocs.
If on clicking the Register button , php code appears on the page , then most probably it has nothing to do with your code. Please check if you are directly double-clicking the html file for your testing . Please execute it by entering the localhost page address in the browser instead.
Eg : http://localhost/registration.html
Now the HTML should be able to execute the PHP code.
-ShazzDecoder