Forum in Smarty!

#1
Hallo Leute!

vielleicht könnt ihr mir helfen!

Also bin noch ein großer noob mit smarty!

Also ich habe ein Formular erstellt und wenn man dort nun auf absenden klickt soll man auf die seite anmeldung.php?step=2 kommen nur leider kommt vorher schon immer der error

Fatal error: Smarty error: [in anmeldung.tpl line 2]: syntax error: expecting '=' after attribute name 'Step' (Smarty_Compiler.class.php, line 1548) in /srv/www/web1/html/test/libs/Smarty.class.php on line 1095

Hier der quelltext!

anmeldung.tpl
PHP:
{config_load file=test.conf section="setup"}
{include file="header.tpl" title=Anmeldung Step 1}


<form action="anmeldung.php?step=2" method="POST">
<table>
<tr>
   <td>Nickname</td>
   <td><input type="text" name="nickname" /></td>
</tr>
<tr>
   <td>Passwort</td>
   <td><input type="password" name="passwort" /></td>
</tr>
<tr>
   <td>E-Mail</td>
   <td><input type="text" name="email" /></td>
</tr>
</table>
</form>


{include file="footer.tpl"}
und anmeldung.php

PHP:
<?php

require './libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->debugging = true;



$smarty->display('anmeldung.tpl');
?>
 

UNC

B1G-Software-Kunde
#3
Du musst die Werte, die du einer Variable zuweist immer zwischen "-Zeichen schreiben.

Code:
{config_load file="test.conf" section="setup"}
{include file="header.tpl" title="Anmeldung Step 1"}


<form action="anmeldung.php?step=2" method="POST">
<table>
<tr>
   <td>Nickname</td>
   <td><input type="text" name="nickname" /></td>
</tr>
<tr>
   <td>Passwort</td>
   <td><input type="password" name="passwort" /></td>
</tr>
<tr>
   <td>E-Mail</td>
   <td><input type="text" name="email" /></td>
</tr>
</table>
</form>


{include file="footer.tpl"}
 
Top