title: I want to write PHP code for a Smarty .tpl file
body: <p>I want to write PHP code for a Smarty .tpl file. But it is giving me the following error: </p>
  
  <blockquote>
    <p>Uncaught --> Smarty Compiler: Syntax error in template "./templates/register.tpl" on line 185 "{php}" unknown tag "php" &lt;--
        thrown in
        /opt/lampp/htdocs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 185   </p>
  </blockquote>
  
  <p>When I Google it, I realized it's deprecated and not recommended to use. What should I do now? I want to show drop down with the security question in it.</p>