Truman Posted April 26, 2016 Share Posted April 26, 2016 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 More sharing options...
dsonesuk Posted April 26, 2016 Share Posted April 26, 2016 So... syntax highlighter did not point out missing opening body tag? Link to comment Share on other sites More sharing options...
Truman Posted April 26, 2016 Author Share Posted April 26, 2016 (edited) 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 April 26, 2016 by Truman Link to comment Share on other sites More sharing options...
Truman Posted April 26, 2016 Author Share Posted April 26, 2016 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 More sharing options...
dsonesuk Posted April 26, 2016 Share Posted April 26, 2016 Must be cache problem, at end of url add '?wellthisis=bull' hit return add see what happens. 1 Link to comment Share on other sites More sharing options...
Truman Posted April 26, 2016 Author Share Posted April 26, 2016 Yes, now it works. This is beyond my knowledge, thank you. Link to comment Share on other sites More sharing options...
Ingolme Posted April 26, 2016 Share Posted April 26, 2016 As of HTML 5, the <head> and <body> tags are not required, though it is still preferable to put them. Link to comment Share on other sites More sharing options...
dsonesuk Posted April 26, 2016 Share Posted April 26, 2016 (edited) Its NOT HTML5, and I know for a fact IF you have a closing body tag, you definitely should have opening body tag to go with it. Edited April 26, 2016 by dsonesuk Link to comment Share on other sites More sharing options...
Mandy9983 Posted May 2, 2016 Share Posted May 2, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now