HTML - Help With Password Form
I'm sorry if this question has been asked hundreds of times!
I am trying to make a form which has a password box and a button, and the button relates back to the password entered - so if someone typed a specific word into the password box, they'd get onto the website, but if they didn't it would have an alert telling them it was wrong. This is what I've got so far: <body> <div style="text-align: center;"> <table style="margin-left: auto; margin-right: auto; text-align: left; width: 499px; height: 439px;" background="http://www.freewebs.com/lucymarshall/ipods.jpg" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top; text-align: center;"><small><small><span style="font-family: helvetica,arial,sans-serif;">What is the surname of the current headmaster?</span></small></small><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> </tr> <tr> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> <br> <br> <div style="text-align: center;"><small><small style="font-family: helvetica,arial,sans-serif;"><small><br> <br> <br> Name</small><span style="font-family: helvetica,arial,sans-serif;">: </span></small><br> <input name="password2" size="10" type="password"> <br> </small></div> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> </tr> <tr> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top; text-align: center; font-family: helvetica,arial,sans-serif;"> <input value="A-Go-Go!" type="button"> <br> </td> <td style="vertical-align: top;"><br> </td> <td style="vertical-align: top;"><br> </td> If you could help me I would be SO grateful. Thanks! Similar TutorialsHi there, I'm hoping this is a pretty easy thing to do, and that it is me missing something. My password submit button on my html page will only work when the user clicks on submit and does not work when the user just presses "Enter". How can I change this so that the user can submit the password by pressing "Enter"? Here is my code: Code: <script language="javascript"> function pasuser(form) { if (form.pass.value=="password") { location = "page2.html" } else { alert("Invalid Password") } } </script> <form name="login"> <input name="pass" type="password"> <input type="button" value="Login" onClick="pasuser(this.form) "> <input type="Reset"> </form> Hi all! I'd like to create a Username/Password form, but i dont know how to do it. I'd like something like this: Username: *user has to type name* Password: *user has to type password* ACCEPT CLEAN I want it to work only for ONE username and ONE password. So, if user types this correct username and password (plus ACCEPT) then the page links you to PageCorrect.htm If user types any kind of username and password besides the correct one (plus ACCEPT), then the page links you to PageIncorrect.htm If user clicks on CLEAN, then the boxes have to clean. Thanks a lot! I really need this help...Its something important I wish to attach a password to a Web site so that only persons who know the password can view the site. I have created some code, below, but it lacks a condition to restrict entry only to persons who know the password. The password must be "birthday" without the quotes. Could someone please tell me what statements must be added to accomplish my task? Thanks, Bill <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Password02</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> password: <INPUT TYPE=PASSWORD NAME="mypassword"> <P><INPUT TYPE=SUBMIT VALUE="submit"> <p>Password02</p> <table width="200" border="1"> <tr> <td><img src="DSCF0102.JPG" width="640" height="480"> </td> </tr> <tr> <td><img src="DSCF0104.JPG" width="480" height="640"></td> </tr> </table> <p> </p> </FORM> </body> </html> i have a webpage, i want to add a password facility. how can i do this? i want to store the passwords and logons on the server not on host as cookies. Your help would be greatly appreciated. Regards Shrekpete I am looking for a script that will let the user enter a username and password once and then throughput that same info into subsequent pages. I have coded a html page that shows the feed from security cameras on my network at work. Each camera has its own IP. I have each one set to display as part of a table so that the cameras are laid out on a grid. Everything works great except that you have to input the username and password for each camera before they will display. Each one has the same login info so is there a way to script it to be entered once and have the code automatically submit it for the rest? Look at this page: http://www.unit.org.uk/secure/ Can someone give me a HTML code for something like this. PS it has two passwords; buffalo and badwolf I'm new to HTML and to this forum, so hello everyone! I am a hands on kind of guy and i'm currently making a sort of interactive, info/game site. My question is: For this site I have a simple page (nothing to complex), and I want to have a box for lets say Enter Code: . Note this is not a user name/password just a password so to speak. If the password is correct it will take them to a new page. If not they will stay on the current one but get a error message. To keep it simple. User enters code ---- if correct --- new page ---- if wrong --- error message. Would this be done in Javascript? Can anyone help me with this? I know this is begginer stuff but everyone has to start somwhere. On another note is it possible to have it only allow three try's or it takes you to another page? I take it would be in JS using the ++ to count the attempts. I'm trying to customize a template that has a username and password field, and I want it to be the login to my forum. Below is the code that I have, what do I need to edit? <div id="header"> <div id="userbar"> <form action="#"> <label for="username">Username:</label> <input type="text" id="username" name="user" size="20" /> <label for="password">Password:</label> <input type="password" id="password" name="pass" size="20" /> <input type="submit" value="Login" id="login" /> </form> I have just set up a subfolder on my website as a standalone service. I have done this several times before and it had always worked fine. This time, when I try to reach the subfolder, it asks for a password and says that the main folder is requesting this. If I type the password of my FTP access it lets me into the site. I have gone through all the properties of the Main Site and the Sub Site and cannot see why this is happening. If any one has seen this one before, I would be pleased to hear from you. I want an input field to input a password, however I dont want it to look like a password field. I would like to dispay a default text of the date in plain text and when the user enters text into the field it is displayed as an obscured password. I use Code: <input class="exiter" <?php echo ("value=\"".date("d/m/Y")."\""); ?> type="text" name="Exiter" maxlength="10" size="10" > To display the date in plain text. But obviously when I enter data it is displayed in plain text. If I change the type to password the date is displayed as obscured text. Is this possible? How can I make a simple Username and password function on one of my sites? mvh Prosit I am sorry, I don't think this is the correct topic, but I have no idea where to put it. Can someone please tell me how to generate this kind of password prompt? Everyone will have the same login/password, I will probably change it once a year, so there is no need for a form. I need to know how to create it, it's probably the most boring prompt, but its for a group of guys who don't care. I just need to tell them, this is where you go, enter this and it gives you the information. The entire site is html, so there is nothing they will change or add. Thank you, ~eDee ok i hate when it comes to these and i am a noob. I am making like a control panel for my gameserver / web hosting company. I want a safe password gate so like users can login with there password and username. Is there any programs or is there a way you can do somthing from the c panel. any help is greatly appretiated Thanks Hi, Can anyone help me password protect my website? I was thinking of adding a php page as the index and then having it redirect to the main site after the password has been entered correctly. I don't need multiple logins, just one that I can share with a few people. Any ideas? Thanks Hi, i have a username and passwors scriped, but i want to know how to make the password look like ***** or somethink like that, got eny ideas JERadio™ admin@jeradio.tk http://www.jeradio.tk I have been through Google, but am unable to find a semi-simple way of doing this... Basically I am looking to make someone enter a username and password before they are allowed to view a webpage. Like... if someone goes to http://www.test.com/test1.html, a window pops up and they are forced to enter a username and password that I can specify and change for every page. So if they go to http://www.test.com/test2.html.... it would be a different UN and PW (again, that I can specify). I believe it is some sort of javascript that I need... but I cannot figure out a way to make this work without having the username and password be in some openable file that can be viewed to find out the password n such easily. I am having trouble with these username/password areas. Each browser seems to read them in a different way? The sizes, and especially the positioning is messed up. I coded for FF so there all works fine. Could someone try and make sense out of this? Much oblidged, thanks. log-in site here Hello, My friend has a blog through blogger that she wants to be kept private, but doesn't want to have to make her friends who want to read her blog make an account through blogger just to view it. So she bought a domain name and has them connected. She wants her friends to be able to go to her domain name, have them enter a username and password that they all already know, and then be taken to her blog. I figured out most of the password stuff, just a code that you put into your html that encrypts your password... but what I don't get, is if you just put in the address of her blog, your not promted to enter a password and you can automatically read it... is there any way of getting around that? If she ended up not using her blog anymore, and just was creating html pages, is there any code that she could put in the html code to encrypt each page and require a password so people couldn't get to the "page that wants to be hidden" by just entering the url? Thanks so much!! Got a couple of questions, first one, and reason I posted in this forum: I recently signed up for sentrylogin.com to password protect my weebly website. I'm having multiple users all attached to their own private page via the functions on sentry's website. Only problem, is I want my webmaster to have access to all the private pages, just by logging on as his account. I don't want to have to deal with the trouble of requesting each member to enter their information whenever he wants to pull up their page, or logging into sentrylogin.com to deal with their passwords there. This is a snip of the code they have us put in the footer of each page to be password protected. Is there anything I can modify in here to allow for two members to have access? I tried just adding a second number on the singleout area, but that obviously didn't work. Code: PpLID = ""; /* Makes this page viewable by only members of one PayPal Subscription, enter its Ppl ID */ pageLevel = 0; /* Access Level required to view this page */ SingleOut = ######; /* Makes this page viewable by only one member, enter their account number */ My other question, is if that fails, is there a better site anyone recommends for password protection? I am using weebly as my domain, and I don't have access to server side, so php and stuff are out of the picture. I need: Users to be able to access their own pages Webmaster to be able to access all pages, including the private user pages A minimal security setting so all members can also access certain pages Just reply if any of this is unclear. Hoping for some answers or at least a redirect! Thanks for your time, FFXIgirl P.S. - I don't mind paying for a website that offers the functions I need, as long as it's within reason! |