Re: [SMARTY] display question.
| From: | messju mohr | Date: | Wed, 11 Jun 2003 19:59:42 +0000 |
| Subject: | Re: [SMARTY] display question. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9701@lists.php.net to get a copy of this message | ||
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.