Salvo Posted October 23, 2002 Posted October 23, 2002 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
Mark Evans Posted October 23, 2002 Posted October 23, 2002 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)
Salvo Posted October 23, 2002 Author Posted October 23, 2002 Thanks Spanky One less problem. :-) Salvo
Salvo Posted October 23, 2002 Author Posted October 23, 2002 <?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/
Salvo Posted October 24, 2002 Author Posted October 24, 2002 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.