Zen Cart Logo
Forums / General Questions / Inserting Stored Text into $zen_draw_text_field. Help Please

Inserting Stored Text into $zen_draw_text_field. Help Please

Locked

Views: 701

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
18 Mar 2009, 2:11 AM
#1
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Inserting Stored Text into $zen_draw_text_field. Help Please

Hi All,
Below is a little piece of code from a tracking mod. I would like to store some text either in var somewhere or inline here and have it be the default text in the box.

Thanks in Advance,
John

 <td valign="top" class="main noprint">
<?php echo zen_draw_textarea_field('comments', 'soft', '60', '5'); ?>
</td>
18 Mar 2009, 2:29 AM
#2
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Inserting Stored Text into $zen_draw_text_field. Help Please

Hi All,
Apologize for the false alarm.:blush: Found this using developers tools

Line #447 :   function zen_draw_textarea_field($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { 
```turns out this works very nicely.
```html
<td valign="top" class="main noprint"><?php echo zen_draw_textarea_field('comments', 'soft', '60', '5', $defaultText); ?></td>
```Thanks,
            John