Re: [SMARTY] display question.
| From: | Esteban Fernandez | Date: | Wed, 11 Jun 2003 20:08:49 +0000 |
| Subject: | Re: [SMARTY] display question. | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9702@lists.php.net to get a copy of this message | ||
If i ommit the first call, the new_user.tpl don't show it, becouse is a
Form. I want show it before the user press Submit button, and after press
submit button, but just one time, not two.
"Messju Mohr" <messju@lammfellpuschen.de> escribió en el mensaje
news:20030611195942.GC8404@pharao.lammfellpuschen.de...
> On Wed, Jun 11, 2003 at 03:48:24PM -0400, Esteban Fernandez wrote:
> > Hi all
> >
> > i have a question, i have this code
> >
> > $smarty->display("new_user.tpl");
> > if ($Submit) {
> > .
> > .
> > .
> > }
> > $smarty->display("new_user.tpl")
> >
> > This code showme new_user.tpl at two times in the same web page, one
below
> > of the other, i have validations into the if condition, so passing this,
i
> > show the page again with results. but i don't know how to "clear" the
space
> > betweern one display and other. Someone can help me pls.
>
> you call display twice, so the output is shown twice. omit the first
> call to display and it should look fine.