473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

form fields and no-cache

Is it possible to stop 1 single form field from being cached?
I would like all the name and address fields to be cached by Internet
Explorer, but not the credit card field.
How is that done?
thanks
Jul 20 '05 #1
11 30358
shank wrote:
Is it possible to stop 1 single form field from being cached?
Cached? Do you mean you don't want the browser to save certain form
data? If so, then you can't force what you want on the client end.
IE/Win might be conned into not saving it, but other browsers will not.
I would like all the name and address fields to be cached by Internet
Explorer, but not the credit card field.


It sounds like you need to take some security 101 courses, preferably
before accepting credit cards on the net. Do you have ssl? A certificate?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
On 22/7/04 11:10 pm, shank wrote:
Is it possible to stop 1 single form field from being cached?
I would like all the name and address fields to be cached by Internet
Explorer, but not the credit card field.
How is that done?
thanks


Try this:
<INPUT name="creditcard" type="text" autocomplete="off">

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #3
That's it!
thanks!

"Philip Ronan" <ph***********@virgin.net> wrote in message
news:BD269203.1E81A%ph***********@virgin.net...
On 22/7/04 11:10 pm, shank wrote:
Is it possible to stop 1 single form field from being cached?
I would like all the name and address fields to be cached by Internet
Explorer, but not the credit card field.
How is that done?
thanks


Try this:
<INPUT name="creditcard" type="text" autocomplete="off">

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)

Jul 20 '05 #4
"shank" <sh***@tampabay.rr.com> wrote:
That's it!
thanks!

"That's it" in browsers where that works. What about browsers where
that doesn't work?

"Philip Ronan" <ph***********@virgin.net> wrote in message
news:BD269203.1E81A%ph***********@virgin.net...
On 22/7/04 11:10 pm, shank wrote:
> Is it possible to stop 1 single form field from being cached?
> I would like all the name and address fields to be cached by Internet
> Explorer, but not the credit card field.
> How is that done?
> thanks
>
>


Try this:
<INPUT name="creditcard" type="text" autocomplete="off">

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #5
On 24/7/04 2:47 pm, Harlan Messinger wrote:
"That's it" in browsers where that works. What about browsers where
that doesn't work?


<INPUT .. autocomplete="off"> is an IE attribute that switches off an IE
feature. Other browsers will ignore it.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #6
Philip Ronan wrote:
<INPUT .. autocomplete="off"> is an IE attribute that switches off
an IE feature. Other browsers will ignore it.


I should be so lucky. Mozilla also switches off form fill-in support
on such sites. There used to be a preference to override it, but it
seems to have diappeared in Firefox.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #7
On 24/7/04 6:25 pm, Brian wrote:
Philip Ronan wrote:
<INPUT .. autocomplete="off"> is an IE attribute that switches off
an IE feature. Other browsers will ignore it.


I should be so lucky. Mozilla also switches off form fill-in support
on such sites. There used to be a preference to override it, but it
seems to have diappeared in Firefox.


Well at least the page is behaving as the author intended :-)

In fact I think it's a good idea adding this attribute to an input field for
a credit card number. Surely nobody would be insane enough to want this
entered automatically. And you wouldn't want your phone number to appear in
there after you pressed the first digit, would you? So what's the problem?

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #8
Philip Ronan wrote:
Brian wrote:
Philip Ronan wrote:
<INPUT .. autocomplete="off"> is an IE attribute that switches
off an IE feature. Other browsers will ignore it.
I should be so lucky. Mozilla also switches off form fill-in
support on such sites. There used to be a preference to override
it, but it seems to have diappeared in Firefox.


Well at least the page is behaving as the author intended :-)


Heh, yeah.
In fact I think it's a good idea adding this attribute to an input
field for a credit card number. Surely nobody would be insane
enough to want this entered automatically.
Why not? I want it entered in automatically on my home computer, since
someone would have to break into my house and steal my computer to
get the number. And if they did that, they're just as likely to have
the card itself.
And you wouldn't want your phone number to appear in there after
you pressed the first digit, would you?


Well, yes I would. I want my default browser to ask me when I enter
form data if it should save it and reenter it automatically next time.
Mind you, the browser should not do this without asking, since that
would be a privacy violation, in particular in public situations
(kiosk browser, library, etc.). A well run internet cafe or library
would configure the browser to disable saving form data. But that
should be done on the client side.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #9
Tim
Philip Ronan wrote:
In fact I think it's a good idea adding this attribute to an input
field for a credit card number. Surely nobody would be insane
enough to want this entered automatically.

Brian <us*****@julietremblay.com.invalid> posted:
Why not? I want it entered in automatically on my home computer, since
someone would have to break into my house and steal my computer to
get the number. And if they did that, they're just as likely to have
the card itself.


What does IE do if someone hid that form gadget, yet IE has cached answers
for it? Does it autofill it with your credit card again, and you might you
unknowingly submit it to someone?

That's not something I'd care to experiment with, nor would I be very
surprised at IE doing something very stupid.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #10
On 24/7/04 10:30 pm, Brian wrote:
Philip Ronan wrote:
And you wouldn't want your phone number to appear in there after
you pressed the first digit, would you?


Well, yes I would. I want my default browser to ask me when I enter
form data if it should save it and reenter it automatically next time.
Mind you, the browser should not do this without asking, since that
would be a privacy violation, in particular in public situations
(kiosk browser, library, etc.). A well run internet cafe or library
would configure the browser to disable saving form data. But that
should be done on the client side.


Maybe things work differently on your system. In the Mac versions of IE, the
autocomplete items are fetched from the user profile, so I don't think it
would cause problems in internet cafes.

But whenever I click in an empty INPUT box and press the "0" key, my phone
number appears. Or if I press the "2" key, my street address appears.

Of course if I carry on typing, the additional text goes away. But if I just
want to type in a "0" or a "2" by itself, then I have to *delete* the
autocomplete text. When the text box is just one character wide, I can't see
that the autocomplete text has been added, so sometimes it gets left there
by mistake. Obviously I'd be in big trouble if this happened with my credit
card number.

So I think autocomplete should definitely be disabled for sensitive
information like credit card numbers and passwords.

Phil

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #11
Tim wrote:
Philip Ronan wrote:
a credit card number. Surely nobody would be insane enough to
want this entered automatically.

Brian posted:
Why not? I want it entered in automatically on my home computer,
since someone would have to break into my house and steal my
computer to get the number.


What does IE do if someone hid that form gadget, yet IE has cached
answers for it? Does it autofill it with your credit card again,
and you might you unknowingly submit it to someone?


I'm not sure I follow. There is no autofill for hidden form fields,
since there's no way to fill it in in the first place.
That's not something I'd care to experiment with, nor would I be
very surprised at IE doing something very stupid.


Even if it were true, the answer to a stupid IE feature is not markup
to disable that stupid feature, is it?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paxton | last post by:
At the risk of being told "If it ain't broke, don't fix it", my code works, but is ugly. Part of the admin site I'm working on at the moment includes a facility for users to enter Formulations...
4
by: bnp | last post by:
Hi All, I am quite new the JavaScript. Basically I am a C++ programmer, but now I am working on JavaScript since last 5 days. I have a problem regarding the form validation. I have created a...
3
by: Nelson R. | last post by:
Hi, im using a form to get some input from the user. This form is in a HTML file. When I post the form directly to my email, i receive all fields correctly. Example test.html: <FORM...
4
by: MicroMoth | last post by:
Hi, I'm trying to write a update method, in which when the user clicks the update button the update method is passed 10 form fields. Then a update SQL is run to update the database. My question...
7
by: Chuck Anderson | last post by:
I'm pretty much a JavaScript novice. I'm good at learning by example and changing those examples to suit my needs. That said .... ..... I have some select fields in a form I created for a...
4
by: Mike De Petris | last post by:
I am using itextsharp to fill in and flatten some fields from data filled in a web form field and all works quite well. The question now is how to manage the pdf template that has the fields to...
1
by: AR123 | last post by:
Hi I have set up mandatory form fields but it dosne t seem to be working. Would appreciate it if somone could have a look. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> ...
26
by: pepper.gabriela | last post by:
Hello, a stupid question but... page_A.php is a page with a form. The user inserts text in four fields, then he clicks a submit button. The data goes to page_B.php: this page controls the data...
1
by: ERobishaw | last post by:
Using Winform app writing a HTTP Post using the following... on the server side, I get no form fields. Request.Form.AllKeys.Length = 0. If I put the field/value paris in the URL I can use...
1
by: Rick Owen | last post by:
Greetings, I have a form that, when submitted, calls a plsql procedure. The form has a number of fields (text, hidden, select, radio) but the particular field that is giving me problems is a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.