1
jcera
syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 382)
  • 2004/6/9 10:14

  • jcera

  • Just popping in

  • Posts: 72

  • Since: 2004/6/5 6


the following was declared in my html script:

First Name: <input type="text" value="<{$var}> name ="firstname">

...and the following was declared in the php script between the include header and footer statements:

$variable = $_POST['variable'];
xoopsTpl->assign('variable', $variable);


but when i try to load the page, instead of diaplying First Name and the text box, i get the following errors:

1. Notice [PHP]: Undefined index: var in file C:\Program Files\Apache Group\Apache2\htdocs\html\modules\c_employee\index.php line 21

2. Error [Xoops]: Smarty: [in db:add_employee1.htm line 29]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 382) in file C:\Program Files\Apache Group\Apache2\htdocs\html\class\smarty\Smarty_Compiler.class.php line 1824


i figured that the reason for error # 1 is that the html page did not load, thereby not setting the index of the variable var. however, for # 2, i have no idea. did i use the wrong smarty tags?

2
phppp
Re: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 382)
  • 2004/6/9 10:26

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


I would suspect :

First Name: <input type="text" value="<{$var}>" name ="firstname">

3
Dave_L
Re: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 382)
  • 2004/6/9 11:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Also, <{$var}> should be <{$variable}>.

Login

Who's Online

134 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 134


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits