Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_draw_input_field where?


Salvo

Recommended Posts

Posted

Hi all,

I tried to find looking all the files, but I must have missed one...

 

In which file is the ( tep_draw_input_field ) specified?

 

I need to make one input field a little longer...

 

Thanks

 

Salvo

Posted
In which file is the ( tep_draw_input_field ) specified?

I need to make one input field a little longer...

 

The function is defined in html_output.php. You dont need to edit this to make a field longer though :)

 

Just do the following

 

<?php echo tep_draw_input_field('yourfield', '', 'size="30"'); ?>

 

Easy eh ;)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

<?php echo tep_draw_input_field('yourfield', '', 'size="30"'); ?>

 

Easy eh ;)

 

just find out that in one of the added fields I will need it on two or more raws.

 

if size="30" is the length, How do I do it that expand on 2 raws?

 

 

<?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_local_area', $pInfo->products_local_area, 'size="30"'); ?>

 

 

This is a local area field added by me... I will need to enter in this field two area names with their links which will open to a new window clicking on it...

 

just like the two here below... How do I do that?

Any help would be appreciated

 

thanks

 

http://www.oscommerce.com/forums/

http://www.oscommerce.com/forums/

Posted
The function is defined in html_output.php. You dont need to edit this to make a field longer though :)

 

Just do the following

 

<?php echo tep_draw_input_field('yourfield', '', 'size="30"'); ?>

 

Easy eh ;)

 

 

This is what I had and of course works OK!!!

 

<?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_local_area', $pInfo->products_local_area); ?>

 

 

Now Inserting the the size bit I did it like this:

 

<?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_local_area', '', 'size="30"', $pInfo->products_local_area); ?>

 

The width of the input field is OK, longer, but at the end shows this

* required and it doesn't save NOT WORKING...

 

Can someone tell me what I do Wrong?

 

Thanks

 

Salvo

Archived

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

×
×
  • Create New...