<INPUT NAME="name">

<INPUT NAME="name"> – creates PHP variable for input values


Usage ( <INPUT NAME="name"> )


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).


Using an element to change a template.

= new HTML_Template_Flexy();

// 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

// wrap it with something
$elements['test']->prefix '******';
$elements['test']->suffix '!!!!!!';

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

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

template example

  <FORM name="XXXX" flexy:ignoreonly="yes">
    <INPUT name="test" length="12">

compiled template

  <FORM name="XXXX">
    <?php echo $this->elements['test']->toHtml();?>

output from the Template

  <FORM name="XXXX">
    ******<INPUT name="test"  length="12" class="bold" value="Fred">!!!!!!
configures automatic form elements (Previous) creates PHP variable for textarea value (Next)
Last updated: Tue, 06 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.