A
A
Alexander Valutin2019-09-02 18:26:38
PHP
Alexander Valutin, 2019-09-02 18:26:38

How to check checkbox in smarty?

I'm creating a checkbox in a template in a .tpl file
How can I check if the checkbox is pressed just below?

<input type="checkbox" name='is_ifnc' value='1' class=button >

I need to click on it and then I click on the "show" button. If the checkbox is clicked and I click "show", then a new column should be added, otherwise nothing is added?
I tried like this:
{if isset($is_ifnc)}<td>Новая колонка появись</td> {/if}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question