|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Semseo Smarty n00b
Joined: 26 Jan 2012 Posts: 1
|
Posted: Thu Jan 26, 2012 12:13 pm Post subject: Befehl if-else funktioniert nicht richtig |
|
|
Hallo,
ich hab ein Kontaktformular, wo User Namen und E-Mail eintragen und beim Klick des Start-Buttos ein kleines Speedtest-Script erscheinen soll. Nun hab ich das Problem, dass die Ausgabe des Befehls if-else nicht funktioniert. Woran kann das liegen? Kann mir bitte jemand helfen?
Nachfolgend der Code:
Code: | <div id="bContent" class="t_left">
<form method="POST" name="fSdslSpeed" id="fSdslSpeed" action="{$smarty.server.REQUEST_URI}">
<p>
<input type="hidden" name="formData2[referer_form]" value="sdsl_speedtest">
{if $smarty.get.speedtest != 1}
<div>
<table>
<tr>
<td width="100" class="t_right">Firma*</td>
<td><input style="width:200px;" type="text" name="formData2[company]" id="company2"><span id="error_company2" class="error_msg"></span></td>
</tr>
<tr>
<td class="t_right" valign="top" style="padding-top:15px"><img src="images/page.arrow01.png"></td>
<td><br><input style="width:200px;" type="text" name="formData2[company_mail]" id="company_mail2" value="vorname.name@example.{$tld}*" onclick="checkMail2();"><span id="error_company_mail2" class="error_msg"></span><p class="small">Bitte korrekte Firmen-Email-Adressen eingeben.<br>(Private Email Adressen werden nicht berücksichtigt)<br> Ein Link zum Download wird Ihnen zugesendet.</p></td>
</tr>
</table>
<div class="spacer2"></div>
<table>
<tr>
<td width="420"><h2>kostenloser Speedtest</h2></td>
<td><a href="#" onclick="checkForm2();" class="btn-01" title="jetzt senden"><span><span class="arr">jetzt starten</span></span></a></td>
</tr>
</table>
</div>
{else}
<div align="center">
<!-- Anfang Speedtest Code -->
<table border="1" width="432" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#000000"">
<tr><td><h1 align="center">
<font face="Tahoma"><font size="4">Speedtest</font><span style="layout-grid-mode: line"><font size="4"></font></span></font></h1>
<p align="center">
<font face="Tahoma" size="2">Klicken Sie unten auf "Speedtest starten" um die
aktuelle DSL Geschwindigkeit zu messen. Der Speed Test dauert ca. 10 Sekunden.</font><font face="Tahoma"><span style="font-size: 10.0pt; layout-grid-mode: line"><br>
</span><span style="font-size: 4pt; layout-grid-mode: line">
Â*</span><span style="font-size: 10.0pt; layout-grid-mode: line"><br>
</span>
<iframe src="http://www.dsl-speed-messung.de/speedtest_webmaster/" width="424" height=54 frameborder=0 name="I50" scrolling="no" border="0" align=middle></iframe>
<br></font><font size="1" face="Tahoma">(c) Dsl-Speed-Messung.de -
<a href="http://www.dsl-speed-messung.de" style="text-decoration: none" target="_blank">
<font color="#000000">Speedtest</font></a></font></td>
</tr></table>
<!-- Ende Speedtest Code -->
</div>
{/if}
<p class="small">* Pflichtfelder</p>
</form>
</div> |
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|