<p>Yksinkertainen Lukujärjestys generaattori</p>
<p>Jos ongelmia niin ota yhteyttä: nikopa2001@yahoo.com</p>
tee.html
<html> <title>Lukujärjestys Generaattori</title> <form method="POST" action="tee.php"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="348" height="70" id="AutoNumber1"> <tr> <td width="358" height="13" colspan="6"> <p align="center">Täytä Tunnit</td> </tr> <tr> <td width="41" height="22" align="left">Klo</td> <td width="1" height="22" align="left">Ma</td> <td width="57" height="22" align="left">Ti</td> <td width="53" height="22" align="left">Ke</td> <td width="32" height="22" align="left">To</td> <td width="50" height="22" align="left">Pe</td> </tr> <tr> <td width="41" height="19">8-9</td> <td width="1" height="19"><input type="text" name="ma1" size="7"></td> <td width="57" height="19"><input type="text" name="ti1" size="7"></td> <td width="53" height="19"><input type="text" name="ke1" size="7"></td> <td width="32" height="19"><input type="text" name="to1" size="7"></td> <td width="50" height="19"><input type="text" name="pe1" size="7"></td> </tr> <tr> <td width="41" height="12">9-10</td> <td width="1" height="12"><input type="text" name="ma2" size="7"></td> <td width="57" height="12"><input type="text" name="ti2" size="7"></td> <td width="53" height="12"><input type="text" name="ke2" size="7"></td> <td width="32" height="12"><input type="text" name="to2" size="7"></td> <td width="50" height="12"><input type="text" name="pe2" size="7"></td> </tr> <tr> <td width="41" height="7">10-11</td> <td width="1" height="7"><input type="text" name="ma3" size="7"></td> <td width="57" height="7"><input type="text" name="ti3" size="7"></td> <td width="53" height="7"><input type="text" name="ke3" size="7"></td> <td width="32" height="7"><input type="text" name="to3" size="7"></td> <td width="50" height="7"><input type="text" name="pe3" size="7"></td> </tr> <tr> <td width="41" height="11">11-12</td> <td width="1" height="11"><input type="text" name="ma4" size="7"></td> <td width="57" height="11"><input type="text" name="ti4" size="7"></td> <td width="53" height="11"><input type="text" name="ke4" size="7"></td> <td width="32" height="11"><input type="text" name="to4" size="7"></td> <td width="50" height="11"><input type="text" name="pe4" size="7"></td> </tr> <tr> <td width="41" height="11">12-13</td> <td width="1" height="11"><input type="text" name="ma5" size="7"></td> <td width="57" height="11"><input type="text" name="ti5" size="7"></td> <td width="53" height="11"><input type="text" name="ke5" size="7"></td> <td width="32" height="11"><input type="text" name="to5" size="7"></td> <td width="50" height="11"><input type="text" name="pe5" size="7"></td> </tr> <tr> <td width="41" height="17">13-14</td> <td width="1" height="17"><input type="text" name="ma6" size="7"></td> <td width="57" height="17"><input type="text" name="ti6" size="7"></td> <td width="53" height="17"><input type="text" name="ke6" size="7"></td> <td width="32" height="17"><input type="text" name="to6" size="7"></td> <td width="50" height="17"><input type="text" name="pe6" size="7"></td> </tr> <tr> <td width="41" height="5">14-15</td> <td width="1" height="5"><input type="text" name="ma7" size="7"></td> <td width="57" height="5"><input type="text" name="ti7" size="7"></td> <td width="53" height="5"><input type="text" name="ke7" size="7"></td> <td width="32" height="5"><input type="text" name="to7" size="7"></td> <td width="50" height="5"><input type="text" name="pe7" size="7"></td> </tr> <tr> <td width="41" height="13"></td> </tr> </table> <p>Taustakuva: (url) <input type="text" name="ta" size="27"></p> <p>Katso taustakuva Listaa </p> <p><input type="submit" value="Tee" name="B1"></p> </form>
tee.php
<html> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="370" height="68" id="AutoNumber1" background="<? print $ta ?>"> <tr> <td width="371" height="11" colspan="6"> <p align="center">Lukujärjestys</td> </tr> <tr> <td width="54" height="22" align="left">Klo</td> <td width="1" height="22" align="left">Ma</td> <td width="57" height="22" align="left">Ti</td> <td width="53" height="22" align="left">Ke</td> <td width="32" height="22" align="left">To</td> <td width="63" height="22" align="left">Pe</td> </tr> <tr> <td width="54" height="19">8-9</td> <td width="1" height="19"><? print $ma1 ?></td> <td width="57" height="19"><? print $ti1 ?></td> <td width="53" height="19"><? print $ke1 ?></td> <td width="32" height="19"><? print $to1 ?></td> <td width="63" height="19"><? print $pe1 ?></td> </tr> <tr> <td width="54" height="12">9-10</td> <td width="1" height="12"><? print $ma2 ?></td> <td width="57" height="12"><? print $ti2 ?></td> <td width="53" height="12"><? print $ke2 ?></td> <td width="32" height="12"><? print $to2 ?></td> <td width="63" height="12"><? print $pe2 ?></td> </tr> <tr> <td width="54" height="7">10-11</td> <td width="1" height="7"><? print $ma3 ?></td> <td width="57" height="7"><? print $ti3 ?></td> <td width="53" height="7"><? print $ke3 ?></td> <td width="32" height="7"><? print $to3 ?></td> <td width="63" height="7"><? print $pe3 ?></td> </tr> <tr> <td width="54" height="11">11-12</td> <td width="1" height="11"><? print $ma4 ?></td> <td width="57" height="11"><? print $ti4 ?></td> <td width="53" height="11"><? print $ke4 ?></td> <td width="32" height="11"><? print $to4 ?></td> <td width="63" height="11"><? print $pe4 ?></td> </tr> <tr> <td width="54" height="11">12-13</td> <td width="1" height="11"><? print $ma5 ?></td> <td width="57" height="11"><? print $ti5 ?></td> <td width="53" height="11"><? print $ke5 ?></td> <td width="32" height="11"><? print $to5 ?></td> <td width="63" height="11"><? print $pe5 ?></td> </tr> <tr> <td width="54" height="17">13-14</td> <td width="1" height="17"><? print $ma6 ?></td> <td width="57" height="17"><? print $ti6 ?></td> <td width="53" height="17"><? print $ke6 ?></td> <td width="32" height="17"><? print $to6 ?></td> <td width="63" height="17"><? print $pe6 ?></td> </tr> <tr> <td width="54" height="5">14-15</td> <td width="1" height="5"><? print $ma7 ?></td> <td width="57" height="5"><? print $ti7 ?></td> <td width="53" height="5"><? print $ke7 ?></td> <td width="32" height="5"><? print $to7 ?></td> <td width="63" height="5"><? print $pe7 ?></td> </tr> <tr> <td width="54" height="13"></td> </tr> </table> <p><a href="./">Aloita Alusta</a></p> </html>
ihan siisti
Kätsy.
Hauska.. tai onko koulu hauskaa? Ei! Loogisesti päätellen tämä skripti oli tylsä :(
No vitsi vain, ihan kätevä.
hmm... en oikein saanut toimimaan...
Ihan turha.
Kyl toi on ihan OK
Mut ei kyllä toiminu, mut muuten ois ollu iha ok
Ei se tee niit vaik kuinka yrittäis!
Missä on esimerkki??
Ei ees toimi, ei Nikolle tullut mieleen käyttää $_POST-ympäristömuuttujaa tossa generoinnissa..? Ja kun kaveri ei osaa lisätä tonne edes <BODY> -tageja.
TURHA
On varmaan ihan kätevä, en oo viel kerenny testata
noist <?php print $ma ;?> puuttuu " -merkit eli <?php print "$ma" ;?>
Ei tarvitse " merkkejä jos tulostaa pelkän muuttujan tjv.
Koodia voi testata painamalla alla olevaa linkkiä.
Testaa koodia
Ei koko koodi toimi edes. Puuttuu vaikka mitä. Kannattaa laittaa täydellisesti toimivia, ei puolitäydellisesti toimivia.
Ei toimi.
Aihe on jo aika vanha, joten et voi enää vastata siihen.