English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This is what I got so far I might be really off and if this is right I dont know what to do with it... please help!!!



2007-04-26 05:12:24 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers



Hi Thomas,

A file containing the following will create what you want (save as form.html):


Password and Submit









However, if you want it to actually *do* something, you will need a bit more than that. Something like:





Wrapped around the button and text field. However, you are going to need to look into PHP on how to create the file to make it email the data to you. Try these links for tutorials on PHP forms:

http://www.thesitewizard.com/archive/feedbackphp.shtml
http://www.tizag.com/phpT/examples/formex.php

So with PHP, you can have the password data emailed to you after the user has pressed the submit button. Or have the data displayed on screen, or store it in a database, etc.

Hope this helps!

2007-04-26 05:26:03 · answer #1 · answered by geek_girl 4 · 0 0

You've got the submit button right. To make the password truly secure, your best bet is to get it checked on action by a PHP routine on the server (i.e. store the correct password there and have the server routine check the entered password on the form's "action="

2007-04-26 05:19:45 · answer #2 · answered by fjpoblam 7 · 0 0

You may want to add a name attribute to access it with javascript. You can access it with document.getElementById("Password") but I like the old school document.forms[0].password.value;

RJ

2007-04-26 05:16:02 · answer #3 · answered by Anonymous · 0 0

This is absolutely right.
There isn't a problem with it.

Raj
http://myspacelayouthelp.blogspot.com/

2007-04-26 05:15:32 · answer #4 · answered by Anonymous · 0 1

fedest.com, questions and answers