Ich habe mir mal eben ein kleines Modul gestrickt.
Dieses soll mir später 1 oder 0 liefern.
Eingabe beim Modul (das scheint er auch nicht zu vergessen)
Code: Alles auswählen
?>
<table cellspacing="0" cellpadding="0" cellpadding="4">
<tr>
<td class="text"><?php echo mi18n("Debug an/aus");?>:</td>
<td>
<select name="CMS_VAR[1000]">
<?php
echo '<option value="0"';
if ("CMS_VALUE[1000]" == 0)echo ' selected="selected"';
echo '>AUS</option>';
echo '<option value="1"';
if ("CMS_VALUE[1000]" == 1)echo ' selected="selected"';
echo '>AN</option>';
?>
</select>
</td>
</tr>
</table>
<?php
Code: Alles auswählen
<?php
#Includes
cInclude("frontend", "includes/functions.navigation.php");
$dbg = "CMS_VALUE[1000]";
echo "##$dbg##";
?>
Was mache ich falsch?
Olaf