Sam już nie wiem gdzie leży błąd, z góry dzięki za pomoc
<?php exit; } ?> <div id="content"> <div class="postui2 text-title"> <h2> Preisliste </h2> </div> <div class="postui2 text-con"> <div class="con-wrap"> <div id="fuibar"> <div class="fuibarui fui-title"> <p>Preisliste</p> </div> <div class="fuibarui fui-con"> <div class="fui-wrap"> <table width="168" border="0" align="center"> <tr> <td width="84" class="topLine">10 Euro -></td> <td width="74" class="tdunkel"> 100 Coins</td> </tr> <tr> <td class="topLine">25 Euro -></td> <td class="tdunkel">250 Coins</td> </tr> <tr> <td class="topLine">50 Euro -></td> <td class="tdunkel">550 Coins</td> </tr> </table> </div> </div> <div class="fuibarui fui-end"> </div></div> <div id="fuibar"> <div class="fuibarui fui-title"> <p>Coins Beantragen</p> </div> <div class="fuibarui fui-con"> <div class="fui-wrap"> <form action="index.php?s=spenden" method="POST"> <input type="hidden" name='validate' value='validate' /> <table> <tr> <td class=txt_gray width="184" height="32"><div align=left>Login:</div></td> <td class=txt_gray width="218" height="32"><input maxlength=20 name=user_name size=17 value="<?=$_SESSION["user_name"]?>" readonly=""> </tr> <tr> <td>Kod doladowania:</th> <td> <input maxlength=30 name='no' size=30 type="text" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" class="txt"></td> </tr> <tr> <td class="tdunkel" colspan="2" style="text-align:center;"><input type="submit" name="Wyślij" value="Doładuj" class="btn"/> - <input type="reset" class="btn"/></td> </tr> </table> </form> <?php $action=$_POST["validate"]; $no=$_POST["no"]; if ($action=="validate"){ if ($no!=""){ $exec="select `id`, `no`, `cash`,`lock` FROM 'card' WHERE no='$no'"; if($rs){ if($rs->lock==0){ $_SESSION["cash"]=$_SESSION["cash"]+$rs->cash; $exec="update card set `lock`=1 where id=$rs->id"; $exec="update account set coins=".$_SESSION["cash"]." where login='".$_SESSION["user_name"]."'"; echo"<script>alert('Kamienie zostaly doladowane na twoje konto !');location.href='../index.php';</script>"; }else{ } }else{ } }else{ exit; } } ?> </div> </div> <div class="fuibarui fui-end"> </div></div> </div> </div> <div class="postui2 text-end"> </div></div>
Notki indeksów:
Kod
Notice: Undefined index: validate in /usr/local/www/apache22/data/pages/spenden.php on line 64
Notice: Undefined index: no in /usr/local/www/apache22/data/pages/spenden.php on line 65
Notice: Undefined index: no in /usr/local/www/apache22/data/pages/spenden.php on line 65
One chyba nie są zbyt groźne