Hallo! Also ich habe ein kleines Problem;
Ich suche sein einer Ewigkeit nach dem Fehler, aber finde ihn nicht;
Ich habe ein Formular, wenn ich den Button klicke trägt er die daten in eine Datenbank ein. Alle bis auf $marketingtext, $marketingtext_option und $winter!?
Wenn ich nun aber in der Funktion die Variablen vorher definiere, trägt er die vorher definierten Variablen ein
Ich suche sein einer Ewigkeit nach dem Fehler, aber finde ihn nicht;
Ich habe ein Formular, wenn ich den Button klicke trägt er die daten in eine Datenbank ein. Alle bis auf $marketingtext, $marketingtext_option und $winter!?
Wenn ich nun aber in der Funktion die Variablen vorher definiere, trägt er die vorher definierten Variablen ein
PHP:
<form method='POST' action='index.php?action=admin' name='settings'>
<tr><td colspan='3' valign='top'>
<br>
<table border="0" width="100%">
<tr>
<td><font color='#0000FF'><b>Marketingtext:</b></font></td>
<td><input type='text' name='marketingtext' value='<?php echo("$marketingtext"); ?>' style='width: 400px; border-color: #0000FF; border-style: solid; text-align: center; color: #0000FF; font-weight: bold;' maxlength="60"></td>
</tr>
<tr>
<td><font color='#0000FF'><b>Optionen:</b></font></td>
<td>
<input type="radio" name="marketingtext_option" value="none" <?php if ($marketingtext_option == "none") { echo "checked"; } ?>> <a href="javascript:document.settings.marketingtext_option[0].click()"><font color='#0000FF'><b>Normal</b></font></a>
<input type="radio" name="marketingtext_option" value="blink" <?php if ($marketingtext_option == "blink") { echo "checked"; } ?>> <a href="javascript:document.settings.marketingtext_option[1].click()"><font color='#0000FF'><b>Blinkend</b></font></a>
<input type="radio" name="marketingtext_option" value="go" <?php if ($marketingtext_option == "go") { echo "checked"; } ?>> <a href="javascript:document.settings.marketingtext_option[2].click()"><font color='#0000FF'><b>Laufschrift</b></font></a>
</td>
</tr>
<tr><td><p> </p></td></tr>
<tr>
<td></td>
<td><input type="checkbox" name="winter" value="yes" <?php if ($winter == "yes") { echo "checked"; } ?>> <a href="javascript:document.settings.winter.click()" style="color: #FFFFFF;"><b>Winterdesign</b></a></td>
</tr>
<tr><td><p> </p></td></tr>
<tr>
<td><font color='#FFFF00'><b>Information:</b></font></td>
<td><input type='text' value='<?php echo("$information"); ?>' name='information' style='width: 400px; border-color: #FFFF00; border-style: solid; color: #808080; font-weight: bold;'></td>
</tr>
<tr>
<td><font color='#0000FF'><b>Neuanmeldung:</b></font></td>
<td>
<select name='premium_free_submit' value='<?php echo("$premium_free_submit"); ?>' style='text-align: center; font-weight: bold; color: #0000FF;'>
<option value="0" <?=$premium_free_submit == "0" ? "selected" : "";?>>0</option>
<option value="1" <?=$premium_free_submit == "1" ? "selected" : "";?>>1</option>
<option value="2" <?=$premium_free_submit == "2" ? "selected" : "";?>>2</option>
<option value="3" <?=$premium_free_submit == "3" ? "selected" : "";?>>3</option>
<option value="4" <?=$premium_free_submit == "4" ? "selected" : "";?>>4</option>
<option value="5" <?=$premium_free_submit == "5" ? "selected" : "";?>>5</option>
<option value="6" <?=$premium_free_submit == "6" ? "selected" : "";?>>6</option>
<option value="7" <?=$premium_free_submit == "7" ? "selected" : "";?>>7</option>
<option value="8" <?=$premium_free_submit == "8" ? "selected" : "";?>>8</option>
<option value="9" <?=$premium_free_submit == "9" ? "selected" : "";?>>9</option>
<option value="10" <?=$premium_free_submit == "10" ? "selected" : "";?>>10</option>
<option value="11" <?=$premium_free_submit == "11" ? "selected" : "";?>>11</option>
<option value="12" <?=$premium_free_submit == "12" ? "selected" : "";?>>12</option>
<option value="13" <?=$premium_free_submit == "13" ? "selected" : "";?>>13</option>
<option value="14" <?=$premium_free_submit == "14" ? "selected" : "";?>>14</option>
<option value="15" <?=$premium_free_submit == "15" ? "selected" : "";?>>15</option>
<option value="16" <?=$premium_free_submit == "16" ? "selected" : "";?>>16</option>
<option value="17" <?=$premium_free_submit == "17" ? "selected" : "";?>>17</option>
<option value="18" <?=$premium_free_submit == "18" ? "selected" : "";?>>18</option>
<option value="19" <?=$premium_free_submit == "19" ? "selected" : "";?>>19</option>
<option value="20" <?=$premium_free_submit == "20" ? "selected" : "";?>>20</option>
<option value="21" <?=$premium_free_submit == "21" ? "selected" : "";?>>21</option>
<option value="22" <?=$premium_free_submit == "22" ? "selected" : "";?>>22</option>
<option value="23" <?=$premium_free_submit == "23" ? "selected" : "";?>>23</option>
<option value="24" <?=$premium_free_submit == "24" ? "selected" : "";?>>24</option>
<option value="25" <?=$premium_free_submit == "25" ? "selected" : "";?>>25</option>
<option value="26" <?=$premium_free_submit == "26" ? "selected" : "";?>>26</option>
<option value="27" <?=$premium_free_submit == "27" ? "selected" : "";?>>27</option>
<option value="28" <?=$premium_free_submit == "28" ? "selected" : "";?>>28</option>
<option value="29" <?=$premium_free_submit == "29" ? "selected" : "";?>>29</option>
<option value="30" <?=$premium_free_submit == "30" ? "selected" : "";?>>30</option>
<option value="31" <?=$premium_free_submit == "31" ? "selected" : "";?>>31</option>
</select> <font color='#0000FF'><b>Tag(e) Free Premium</b></font>
</td>
<tr>
<td><font color='#0000FF'><b>Kundenwerbung:</b></font></td>
<td>
<select name='premium_free_promo' value='<?php echo("$premium_free_promo"); ?>' style='text-align: center; font-weight: bold; color: #0000FF;'>
<option value="0" <?=$premium_free_promo == "0" ? "selected" : "";?>>0</option>
<option value="1" <?=$premium_free_promo == "1" ? "selected" : "";?>>1</option>
<option value="2" <?=$premium_free_promo == "2" ? "selected" : "";?>>2</option>
<option value="3" <?=$premium_free_promo == "3" ? "selected" : "";?>>3</option>
<option value="4" <?=$premium_free_promo == "4" ? "selected" : "";?>>4</option>
<option value="5" <?=$premium_free_promo == "5" ? "selected" : "";?>>5</option>
<option value="6" <?=$premium_free_promo == "6" ? "selected" : "";?>>6</option>
<option value="7" <?=$premium_free_promo == "7" ? "selected" : "";?>>7</option>
<option value="8" <?=$premium_free_promo == "8" ? "selected" : "";?>>8</option>
<option value="9" <?=$premium_free_promo == "9" ? "selected" : "";?>>9</option>
<option value="10" <?=$premium_free_promo == "10" ? "selected" : "";?>>10</option>
<option value="11" <?=$premium_free_promo == "11" ? "selected" : "";?>>11</option>
<option value="12" <?=$premium_free_promo == "12" ? "selected" : "";?>>12</option>
</select> <font color='#0000FF'><b>Monat(e) Free Premium</b></font>
</td>
</tr>
<tr>
<td><font color='#008000'><b>Premiumpreis:</b></font></td>
<td><input type='text' value='<?php echo("$pricepermonth"); ?>' name='pricepermonth' maxlength='6' style='width: 50px; border-color: #008000; border-style: solid; text-align: right; color: #008000; font-weight: bold;' size='5'> <font color='#008000'><b>€ pro Monat</b></font></td>
</tr>
<tr>
<td colspan="2" align="right">
<input type='submit' class='button' name='uebernehmen_einstellungen' value='Übernehmen'>
</td>
</tr>
</table>
</tr>
</form>