Password protect a text box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Thanks for the help with my project so far!!
Is it possible to protect a textbox on a form such that people can't
casually enter stuff and then submit. I've read the articles and I can do the
whole PW Protect a page thing but was wondering if there was a way to just
force a password if text is entered in to the box such that the user could
access the page they just couldn't enter anything.
 
I don't think you can password protect it.
But why not try the "disabled" attribute.

<input type="text" name="text1" disabled>

This "greys out" the box and doesn't let any text be entered. If you want a
pre-set value add value="whatever you like" to the input type tag.
I don't know if "disabled" in this case works in all browsers - it may or
may not; otherwise there should be other methods of preventing data-entry
into a form element. (java script for instance).
 
I want to allow all people to open the page, and select individuals to be
able to enter text. Not to have text already in the box.
If I password protect the page via the instructions I have seen here I
assume when one clicks on the link to the page a PW box of some variety will
come up? This won't effect the page that the form writes to, will it? If I
make the page a subweb and protect it, it won't in some way interact
negatively with the page I want the instructions written to, will it.
 
I think you're trying to "over complicate" the process here.

If the input page is password protected, users will be prompted for a user
name and password "before" they are allowed access to the page.
Then once they get the page open they are obviously authorized to enter
text.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
You said you want to password protect a "text box on a form" not the whole
page....

Is it possible to protect a textbox on a form such that people can't
casually enter stuff and then submit. [unqote]

I gave you the possible answer based on how you asked the question.

If you meant "password protect a web page", then please say so.
 
Back
Top