Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kodėl neveikia Button mygtukas???

Parašė Kenguriukas· 2009 Gru. 18 12:12:54
#1

Sveiki, pasidariau mažą programėlę, kuri randomintų skaičiuką pridėtu prie vieno saito ir sudėtu visus saitus eilutėmis į lentelę... tačiau negaliu iššaukti komandos, kadangi Button neveikia :(

Dėkui...

 <?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fusion.co.uk/
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
error_reporting(E_ALL);
if (!iMEMBER) { redirect("index.php"); }
opentable('Draugiškų varžybų ieškiklis');   
echo '<table border="1" width="100%" id="table1">
   <tr>
      <td width="125">Pasirinkite m<span lang="lt">&#279;nes&#303;</span></td>
      <td width="99">Kelis si<span lang="lt">&#363;lymus?</span></td>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td width="125" align="center"><select size="1" name="D1">;
      <option value="1">Sausis</option>;
      <option value="2">Vasaris</option>;
      <option value="3">Kovas</option>;
      <option value="4">Balandis</option>;
      <option value="5">Gegužė</option>;
      <option value="6">Birželis</option>;
      <option value="7">Liepa</option>;
      <option value="8">Rugpjūtis</option>;
      <option value="9">Rugsėjis</option>;
      <option value="10">Spalis</option>;
      <option value="11">Lapkritis</option>;
      <option value="12">Gruodis</option>;</select></td>
      <td width="99" align="center">
      <input type="text" name="T1" value="10" size="5"></td>
      <td><p align="center"><input type="button" name="save" value="Nu ble...""/></td>
   </tr>';
if (isset($_POST['save'])){
   echo 'labas';
   if ($_POST['T1']!="")  {
    $kiek=stripinput($_POST['T1']);
       for ($j = 1; $j <= $kiek; $j++){
   $komanda=rand(1,39359);
   echo '<tr>
      <td width="125">&nbsp;</td>
      <td colspan="2"><a href="http://hockey.powerplaymanager.com/lt/kalendorius.html?data='.$komanda.'">http://hockey.powerplaymanager.com/lt/kalendorius.html?data='.$komanda.'</a></td>
   </tr>';
          }
    }
 } else {
    echo '</table>
<p align="left">Atminkit. Kad tarp rezultat&#371; gali b&#363;ti ir Lietuvos komand&#371;</p>';
}
closetable();
require_once THEMES."templates/footer.php";
?>



Redagavo Karolis· 2009 Gru. 18 13:12:58

Parašė Use Google· 2009 Gru. 18 13:12:04
#2

Pirmiausia, tai isjunk smailus pranesime :)

Parašė Kenguriukas· 2009 Gru. 18 16:12:26
#3

Tai kad išjungti jie... geriau pasakyk kodėl neveikia...?|

Parašė maxas66· 2009 Gru. 18 16:12:55
#4

 <?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fusion.co.uk/
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
error_reporting(E_ALL);
if (!iMEMBER) { redirect("index.php"); }
opentable('Draugiškų varžybų ieškiklis');   
echo '<table border="1" width="100%" id="table1">
   <tr>
      <td width="125">Pasirinkite m<span lang="lt">&#279;nes&#303;</span></td>
      <td width="99">Kelis si<span lang="lt">&#363;lymus?</span></td>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td width="125" align="center"><select size="1" name="D1">;
      <option value="1">Sausis</option>;
      <option value="2">Vasaris</option>;
      <option value="3">Kovas</option>;
      <option value="4">Balandis</option>;
      <option value="5">Gegužė</option>;
      <option value="6">Birželis</option>;
      <option value="7">Liepa</option>;
      <option value="8">Rugpjūtis</option>;
      <option value="9">Rugsėjis</option>;
      <option value="10">Spalis</option>;
      <option value="11">Lapkritis</option>;
      <option value="12">Gruodis</option>;</select></td>
      <td width="99" align="center">
      <input type="text" name="T1" value="10" size="5"></td>
      <td><p align="center"><input type="button" name="save" value="Nu ble..." /></td>
   </tr>';
if (isset($_POST['save'])){
   echo 'labas';
   if ($_POST['T1']!="")  {
    $kiek=stripinput($_POST['T1']);
       for ($j = 1; $j <= $kiek; $j++){
   $komanda=rand(1,39359);
   echo '<tr>
      <td width="125">&nbsp;</td>
      <td colspan="2"><a href="http://hockey.powerplaymanager.com/lt/kalendorius.html?data='.$komanda.'">http://hockey.powerplaymanager.com/lt/kalendorius.html?data='.$komanda.'</a></td>
   </tr>';
          }
    }
 } else {
    echo '</table>
<p align="left">Atminkit. Kad tarp rezultat&#371; gali b&#363;ti ir Lietuvos komand&#371;</p>';
}
closetable();
require_once THEMES."templates/footer.php";
?>