<?php
require_once("szkielet.php");
?>
<div class="main box_black">
<span style="color:white;"><center>
<?
if($user['admin'] == 1){
?>
<h1>Panel Dodawania Pileczek</h1><Br>
<form action="" method="post"><Br>
<b> Nick: </b>
<input type="text" name="nick" /><Br>
<b> Ilośc Pileczek do dodania: </b>
<input type="text" name="ilosc" /><Br>
<input type="hidden" name="send" value="1" /><br>
<input type="submit" value="Dodaj!" />
</form>
<br><br>
<?
if ($_POST['send'] == 1) {
$nick = $_POST['nick'];
$ilosc = $_POST['ilosc'];
echo "<h1>Dodano $ilosc Pileczek użytkownikowi: $nick</h1>"; }
?>
<?
} else {
echo "<h1>Nie masz uprawnien administratora!</h1>"; }
?>
</div></span></center>
<?
require_once("stopka.php");
?>
To jest kod. Normalnie wszystko ładnie, pięknie pisze:
(IMG:
http://i.imgur.com/akkuC49.png)
Ale pileczek nie dodaje (IMG:
style_emoticons/default/sad.gif)
Pomocy!