Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How do I change the length of form fields?


Recommended Posts

Hello incredibly helpful people,


I've been poking around and can't find my way around this one...


I just want to change the length of the input form fields in create_account.php. They are only 8 characters wide! :unsure:


Thanks a million!


Link to comment
Share on other sites

if you look at the function you'll see its input options are


tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) X-Ref


you can change the size by adding the parameter:





and max input with




you can get more info on all functions at: http://oscommerce-reference.swisscart.com/...ions/index.html





Remember, What you think I ment may not be what I thought I ment when I said it.




Auto Backup your Database, Easy way


Multi Images with Fancy Pop-ups, Easy way


Products in columns with multi buy etc etc


Disable any Category or Product, Easy way


Secure & Improve your account pages et al.

Link to comment
Share on other sites

In case anyone else wants to do this, the exact code I had to use at every input field was:


tep_draw_input_field('firstname', '', 'size="20" maxlength="25"')


The above, of course, was for the "First Name" input field.


Works like a charm! :D



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...