Password protect a text box

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.
 
A

Andrew Murray

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).
 
G

Guest

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.
 
S

Steve Easton

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
 
A

Andrew Murray

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top