How to write {/functions} ?
| From: | Michal Prinke | Date: | Tue, 23 Apr 2002 15:58:04 +0000 |
| Subject: | How to write {/functions} ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3854@lists.php.net to get a copy of this message | ||
Hello,
How to write a function to handle both {function} and {/function} calls?
A simple example:
<html>
<body>
{my_form}
<input type="text" name="field_one"><br>
<input type="text" name="field_two"><br>
{/my_form}
</body>
</html>
I would like to write a function to echo "<form name='my_form'
method='post'>"
on {my_form} call and to echo "<input type='submit'></form>" on
{/my_form}.
How to write my_form() function ?
Thanks...