I was following a guide on creating a secure log in with PHP, it was relatively easy to understand since I am very new to the language. When I finished I tried to check it out on my MAMP server, and none of the form for the register page shows up. What could be causing this?
tutorial I used here: http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL
The Code in Question: (HTML / PHP)
<form action="<?php echo esc_url($_SERVER['PHP_SELF']); ?>"
method="post"
name="registration_form">
Username: <input type='text'
name='username'
id='username' /><br>
Email: <input type="text" name="email" id="email" /><br>
Password: <input type="password"
name="password"
id="password"/><br>
Confirm password: <input type="password"
name="confirmpwd"
id="confirmpwd" /><br>
<input type="button"
value="Register"
onclick="return regformhash(this.form,
this.form.username,
this.form.email,
this.form.password,
this.form.confirmpwd);" />
</form>
I have tried using a different style of formatting, but I believe it's directly related to the echo esc_url in the form action, any ideas on fixing this?
My form does display with this syntax:
<form>
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>