Jump to content

HTML form - password


Truman

Recommended Posts

I created a HTML registration form with input type password but when I run HTML in my xampp server I see no "password" nor "confirm password". Verification shows that my syntax is OK.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/ DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Registration Form</title>
</head>
<!-- Script 6.1 - register.html -->
<div><p>Please, complete this form to register:</p>
<form action="handle_reg.php" method="post">
<p>Email Address: <input type="text" name="email" size="30" /></p>
<p>Password: <input type="password" name="password" size="20" /></p>
<p>Confirm Password: <input type="password" name="confirm" size="20" /></p>
<p>Year you were born: <input type="text" name="year" value="YYYY" size="4" /></p>
<p>Favorite Color:
<select name="color">
<option value="">Pick One</option>
<option value="red">Red</option>
<option value="yellow">Yellow</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select></p>
<p><input type="checkbox" name="terms" value="Yes" />I agree to the terms (whatever they may be).</p>
<input type="submit" name="submit" value="Register" /></form>
</div>
</body>
</html>
Link to comment
Share on other sites

No, and the case is that other inputs are there ( Email Address etc. ). Now I will correct this mistake.

 

edit: After eding <body> everything stays the same, no password.

Edited by Truman
Link to comment
Share on other sites

This is interesting...when I open a file in browser ( file > open ) it shows "password" and "confirm password". But when I run it through server ( localhost ) nothing again. Any idea why this glitch?

Link to comment
Share on other sites

 

I created a HTML registration form with input type password but when I run HTML in my xampp server I see no "password" nor "confirm password". Verification shows that my syntax is OK.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/ DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...