cvs: peardoc /peardoc2/en/package/html/html-template-flexy/attribute input.xml textarea.xml

From: Date: Sat, 01 Feb 2003 14:59:02 +0000
Subject: cvs: peardoc /peardoc2/en/package/html/html-template-flexy/attribute input.xml textarea.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-344@lists.php.net to get a copy of this message
alan_k Sat Feb 1 09:59:02 2003 EDT Added files: /peardoc/peardoc2/en/package/html/html-template-flexy/attribute input.xml textarea.xml Log: input and textarea docs Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template.tag.input"> <refnamediv> <refname>&lt;INPUT NAME="name"&gt;</refname> <refpurpose>creates PHP variable for input values</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>&lt;INPUT NAME="name"&gt;</parameter></paramdef> <paramdef><parameter>&lt;INPUT NAME="name" flexyignore="TRUE"&gt;</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.tag.input.desc"> &title.desc; <para> 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) </para> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.input.example.php"> &title.example; <example> <title>Setting variables for input</title> <programlisting role="html"> <![CDATA[ $this->theform = new StdClass; // or you can use a DataObject! $this->theform->theinput = "hello world"; ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.input.example.html"> &title.example; <example> <title>Foreach in template</title> <programlisting role="html"> <![CDATA[ <form name="theform"> <input name="theinput"> </form> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.input.example.compiled"> &title.example; <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="theform"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.input.example.output"> &title.example; <example> <title>Simple ouput example</title> <programlisting role="html"> <![CDATA[ ** well since I cant show forms, It will look something like this.. [hello world] ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template.tag.textarea"> <refnamediv> <refname>&lt;TEXTAREA NAME="name"&gt;</refname> <refpurpose>creates PHP variable for textarea value</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>&lt;TEXTAREA NAME="name"&gt;</parameter></paramdef> <paramdef><parameter>&lt;TEXTAREA NAME="name" flexyignore="TRUE"&gt;</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.tag.textarea.desc"> &title.desc; <para> 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) </para> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.textarea.example.php"> &title.example; <example> <title>Setting variables for input</title> <programlisting role="html"> <![CDATA[ $this->theform = new StdClass; // or you can use a DataObject! $this->theform->theinput = "hello world"; ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.textarea.example.html"> &title.example; <example> <title>Foreach in template</title> <programlisting role="html"> <![CDATA[ <form name="theform"> <TEXTAREA name="theinput">some dummy text</TEXTAREA> </form> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.textarea.example.compiled"> &title.example; <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="theform"> <TEXTAREA NAME="theinput"><?php echo htmlspecialchars($t->theform->theinput); ?></TEXTAREA> <?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.textarea.example.output"> &title.example; <example> <title>Simple ouput example</title> <programlisting role="html"> <![CDATA[ ** well since I cant show forms, It will look something like this.. [hello world ] [ ] [ ] ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.pear.doc (#344) next »