Richard Lee Posted August 8, 2005 Posted August 8, 2005 Hi guys and girls, in the admin panel I can set minimum values for the user account fields, but there doesn't seem to be anywhere to set maximum values! Is this a limitation in osCommerce? If so, how can I edit it so that I can setup maximum values for the account form inputs. For example, presently I have postcode Minimum Value set to 4, BUT I would also like to set a Maximum Value of 4, since Australian postcodes only consist of 4 digits. Thanks in advance!
FalseDawn Posted August 9, 2005 Posted August 9, 2005 You need to add the "maxlength" html attribute in the parameters list of the control involved, for example: echo tep_draw_password_field('password', '', 'size="20" maxlength="20"')
Richard Lee Posted August 9, 2005 Author Posted August 9, 2005 You need to add the "maxlength" html attribute in the parameters list of the control involved, for example: echo tep_draw_password_field('password', '', 'size="20" maxlength="20"') <{POST_SNAPBACK}> Thanks for replying.. Ok, so the only option is to hardcode it ? There's no way to edit the Maximum Values page in the admin page then so it appears as an option??
FalseDawn Posted August 9, 2005 Posted August 9, 2005 There's always a way... I don't know what page you are referring to, but for something as trivial as this, I don't really see the need to clutter the Admin up even more. Remember - every admin value = another row in the database = your site running a bit slower. :rolleyes:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.