HTML - Please Help With A Username/password 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 Similar TutorialsI'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> How can I make a simple Username and password function on one of my sites? mvh Prosit 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 Hi! Please someone help me with this!! I'm updating someone else's website. I was asked to put a link on the home page to a .doc file. I uploaded the updated home page with link and the linked file to the website via Ipswitch WS-FTP. Now, what SHOULD happen is after clicking the link, the window asking to "open" or "save to disk" should pop up. What is happening instead is that a window pops up asking for a username and password. When "Cancel" is clicked, the file opens automatically. How can I fix this?? Here is the original site link: http://www.richmondtheatres.org If there is something wrong in the code, please let me know. The link is a simple "a href="http://www.richmondtheatres.org/Script Registry 9-1-07.doc"> Thanks for any help provided! 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! Hi 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> From what I can tell from the program I'm using, this code below is the Login Box that holds the words User Name & Password and their corresponding fields. How can I change this to keep the text and fields, but remove the box that's around them? Thanks. Code: <form action="/sfolder/members/default.asp?action=login" method=post name=login language="JAVASCRIPT" onsubmit="return Validate();"><input type=hidden name=todo value="login"><input type=hidden name=url value="/sfolder/members/default.asp"><br> <table border=0 cellspacing=0 cellpadding=0 width=95% align=center class=colorformborder><tr class=colorformborder><td><table border=0 cellspacing=0 width=100% cellpadding=0><tr class=colorformborder><td colspan=2><table border=0 cellspacing=1 cellpadding=5 width=100% colspan=2><tr class=colorformheader><td colspan=2><font class=textsize9><b>Login Here</b></font></td></tr> <tr class=colorformfields><td align=center colspan=2><font class=textsize9></font></td></tr><tr class=colorformfieldsalt><td align=right width=50% ><font class=textsize9>User Name</font></td><td><font class=textsize9><input class=fieldbox type=text size=20 maxlength=50 name="members_username"></font></td></tr> <tr class=colorformfields><td align=right width=20% ><font class=textsize9>Password</font></td><td><font class=textsize9><input class=fieldbox type=password size=20 maxlength=50 name="members_password"></font></td></tr><tr class=colorformfields><td colspan=2 align=right><font class=textsize9><input class=fieldbox type=submit value="Login" id=submit2 name=submit2></font></td></tr> </td></tr></table></td></tr></table></td></tr></table><br><br></form> Hello, I am making a website for my school, and just recently I was asked to make a login section for students and for parents, (to view grades and reports on there children.) I have looked on the internet and it is very unclear to me on how I would go about doing this, How would I go about starting this up? I'm pretty new to HTML coding, and I think I'm close to getting this correct. I want to forward username and passwords typed into this site (near the bottom): http://www.mscd.edu/~career/ to automatically log people in to this site: https://www.myinterfase.com/metrostatecollege/student/ Code: <h2 align="center">Metro State Joblink Student Login</h2> <form method="post" action="https://www.myinterfase.com/metrostatecollege/student/" target="_blank"> <input type="hidden" name="offsite" id="offsite" value="1" /> <div id="container"> <div id="main" style="width:500px"> <div class="panelRow"> <span class="panelLabel">Username:</span> <span class="panelForw"><input type="text" id="username" name="username" /></span> </div> <div class="panelRow"> <span class="panelLabel">Password:</span> <span class="panelForw"><input type="password" id="pwd" name="pwd" /></span> </div> <div style="padding-left:115px;"><input type="Submit" id="submit" value="Login" /> </div> <div style="padding-left:115px;padding-top:8px;font-size: 10pt; font-family: verdana, arial, helvetica, sans-serif;"> <a href="https://www.myinterfase.com/metrostatecollege/studentregistration.aspx" target="_blank">Register Here!</a></div> <div style="padding-left:115px;padding-top:8px;font-size: 10pt; font-family: verdana, arial, helvetica, sans-serif;"><a href="https://www.myinterfase.com/metrostatecollege/passwordreset.aspx?ac=274" target="_blank">Forgot Password?</a> </div> </div> </div> </form> this code is working fine in other browsers but when i run this code in opera username text field becomes disabled, any one has solution here is the code: <script type="text/javascript"> function setFocus() { document.loginForm.txt_username.focus(); } function validation() { var cuser = document.loginForm.txt_username.value.length; var cpwd = document.loginForm.txt_password.value.length; if(cuser <= 0) { alert("Please enter username"); document.loginForm.txt_username.focus(); return false; } if(cpwd <= 0) { alert("Please enter password"); document.loginForm.txt_password.focus(); return false; } return true; } </script> <body onLoad="setFocus()"> <br /><br /><br /><br /><br /><br /><br /> <div align="center"> <form name="loginForm" method="post" action="index.php" onSubmit="return validation();"> <table> <tr> <td>Username:</td> <td><font face="Calibri" size="16px"><input type="text" name="txt_username" tabindex="1"/></font></td> </tr> <tr> <td>Password:</td> <td><font face="Calibri" size="16px"><input type="password" name="txt_password" tabindex="2" /></font></td> </tr> <tr> <td align="center"><input type="submit" name="btn_submit" value="Sign In" tabindex="3" /></td> </tr> </table> </form> </div> </body> 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 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 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 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? 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> 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 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 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. |