This is a discussion on how to set maxlength on an input field? within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I need to restrict the max chars on the street address field of the Create An Account form to 30 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I need to restrict the max chars on the street address field of the Create An Account form to 30 chars. I know I could set this in the database but I need to restrict it on the html form. Otherwise the additional chars would just get cut off when the data is inserted and we wouldn't have a complete address. Does anyone know how to do this? I know if it were a regular html form I would just set maxlength="30" in the input field but since the form is constructed from a class I'm having a hard time tracing back to see what method might be available & how to use it. Thanks! |
|
#2
| |||
| |||
| Hey, I figured it out. Maybe this will help someone else: tep_draw_input_field('street_address', '', 'maxlength="30"') |
| The Following User Says Thank You to shazam-fu For This Useful Post: | ||
michael_s (01-23-2007) | ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to add input text field in product attributes | bethphilbin | osCommerce 2.2 Modification Help | 15 | 08-07-2006 07:48 PM |
| Attributes, Text Input + Price | donm1021 | osCommerce 2.2 Discussion | 0 | 08-07-2006 11:58 AM |
| Input Field Width??? | OmarC | osCommerce 2.2 Modification Help | 3 | 12-20-2004 10:45 AM |
| Problem with Input Field type - must restrict chars... | Anonymous | osCMax v1.7 Discussion | 4 | 02-26-2004 04:43 PM |
| Positioning order of Customer Input Boxes | WebMistress | osCommerce 2.2 Modification Help | 6 | 11-10-2003 08:45 PM |