View Full Version : add a class to a php field

05-12-2010, 06:49 PM
I am having trouble adding a class to a php form field.

the field:
<?php echo tep_draw_input_field('email_address'); ?>

I can add a class to all input elements but I dont want my styling to apply to all input elements on my site.

Spanning a class does not work either.

What can i do?

05-12-2010, 08:47 PM
You should consult the documentation for osCommerce since that seems to be where that function comes from. Unfortunately, I had trouble finding a simple function reference. This post elsewhere (http://www.ez-oscommerce.com/oscommerce-support/index.php-t157063.html) answer a similar question on how to set a text input size. Apparently, the desired attributes should be passed as a string in the third argument to the function, according to this other post (http://www.oscommercesupport.net/oscommerce-support/index.php-t326160.html).

05-12-2010, 09:34 PM
Awesome! yep you are right the trick was it needed to be entered as the third argument. Thanks!

05-13-2010, 12:12 AM
great job, it's working :)