<TEXTAREA NAME="name">

<TEXTAREA NAME="name"> – creates PHP variable for textarea value

Synopsis

Usage ( <TEXTAREA NAME="name"> )

Description

fills in the form with values based on the form name and the tag name. If flexyignore is used, it is left alone (or if the body or form has a flexyignore tag it will be left alone).

Example

Using an element to change a template.

<?php
$form 
= new HTML_Template_Flexy();
$form->compile('some_file_name');

// create an instance (note you dont have to specify any details..)

$elements['test'] = new HTML_Template_Flexy_Element;

// change an attribute
$elements['test']->attributes['class'] = 'bold';

// sets the value
$elements['test']->setValue('Fred');


$form->outputObject(new StdClass$elements);

// in the example below, the new data you have added is to the existing attributes
?>

template example

<BODY>
  <FORM name="XXXX" flexy:ignoreonly="yes">

    <textarea name="test"></textarea>


  </FORM>
</BODY>

compiled template

<BODY>
  <FORM name="XXXX">

    <?php echo $this->elements['test']->toHtml();?>


  </FORM>
</BODY>

output from the Template

<BODY>
  <FORM name="XXXX">

     <textarea name="test" class="bold">Fred</textarea>

  </FORM>
</BODY>
creates PHP variable for input values (Previous) creates PHP variable and code for select lists (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.