Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change the length of form fields?


WoodsWalker

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!

~Wendy

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:

 

 

size="X"

 

and max input with

 

maxlength="XX"

 

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

 

B)

Sam

 

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

 

Contributions:

 

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

 

~Wendy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...