SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Text box question
Hybrid View
-
Jun 8, 2007, 01:59 #1
- Join Date
- May 2006
- Posts
- 120
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Text box question
I want to display a total value in a text box. I don't want users to be able to change the number in box. Is there a way to do this.
-
Jun 8, 2007, 02:17 #2
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You could use the readonly attribute, but an advanced user could use JavaScript to modify the value, so you should always calculate totals on the server.
We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
Bookmarks