Jetzt habe ich zwei Probleme:
Wie man sieht wird das Kontaktformular 2x ausgegeben - WIESO!?
http://www.kreative-design.net/cms/fron ... hp?idcat=8
Bei der ersten Ausgabe fehlt auch die erste Zeile des Templates, das <form... usw.... Bei der zweiten Ausgabe ist die Zeile da?!?! Wieso???
Schön zu sehen wo es fehlt (der Link führt zum W3 Validator):
http://tinyurl.com/9eslq
Allerdings wird mir auch im Backend alles 2x ausgegeben was per Template erzeugt wird.
Das zweite Problem ist das {ACTIONURL} nicht ersetzt wird. Was mache ich hier falsch?
Das Modul (output):
Code: Alles auswählen
<?
/* Include Template Class */
include_once($cfg["path"]["contenido"] . 'classes/class.template.php');
if(!isset($_POST['submit']))
{
/* Template Instance */
$tpl = new Template;
$tpl->reset();
$tpl->set('d', 'ACTIONURL', $sess->url('front_content.php?idart='.$data['idart']));
$tpl->next();
$tpl->generate('templates/contactform.html');
}
else
{
echo "test!";
}
?>
Code: Alles auswählen
<form name="contactform" id="contactform" method="post" action="{ACTIONURL}">
<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="">
<tr>
<td width="190">Ihr Name:<br />
<input name="name" type="text" class="tbox" size="25" maxlength="100" />
<br />
<p>
Ihre Emailadresse:<br />
<input name="email" type="text" class="tbox" size="25" maxlength="200" />
</p>
</td>
<td>
<p>
<strong>Florian Krämer</strong><br />
Reichensächser Straße 5<br />
37287 Wehretal
</p>
<p>
Telefon: 05658 - 9230295<br />
Telefax: 05658 - 92135
</p>
</td>
</tr>
</table>
Ihre Nachricht an mich:<br />
<textarea name="text" cols="45" rows="8" class="tbox"></textarea>
<br />
<br />
<input name="submit" type="submit" class="button" value="absenden" />
</form>