How to Create a Password on a Web Site

Save
Next Video:
How to Clean Up URLs on Your PC....5

In order to create a password on a Web site, use PHP to program the back end of the password field. Learn about adding two inputs, including a password input, to a Web site with help from a software developer in this free video on Web sites.

Part of the Video Series: Computer Software & Tech Support
Promoted By Zergnet

Comments

Video Transcript

Hi, my name is Dave Andrews. Today I'm going to show you how to create a password on a web site. Let's go to our computer. I have here two files. For example, just to tell you, I'm going to use php to program the back end of this password field and here's my actual web page that people are going to be looking at. I'm going to open it up with Notepad. Now I have a form that is set to post to the back end .php, which is going to be this file and I have two, well I have one now, but I have the capability of adding two inputs. I'm going to show you how to add a password input to your web page. So inside of my form under password, I'm just going to type input type = password, name = pass. Let's save that, and this is just by adding that one input field, I've added a password option to the page. As you can see, I have now a login with username and password capabilities. Now to finish the form I need to add a submit. So I'm going to add an input type = submit and save that. Open it up again. I now have a submit button to log in. Now in this php strip which is the back end. I just have it print out the username. To access the password, type print, password and I can catenate with the value and post and that pass field value which is the name of my password field. Let's save this. Now I have to upload these to a server that will allow me to run php scripts, I already have my website open. Paste that. Let's open up the site by going to daveandrews.org/password/page.htm. So here's my login page and here's my password field. I'm just typing in random letters and submit and here's what I've typed in. The user is David and the password is those random letters that I just typed in. My name is Dave Andrews and I've just showed you how to add a password to your website.

Featured

Related Searches

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!