Kirjautuminen

Haku

Tehtävät

Keskustelu: Koodit: PHP: Lukujärjestys Generaattori

Sivun loppuun

Niko [12.01.2002 18:31:06]

#

<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>

joku_ [25.03.2002 21:44:18]

#

ihan siisti

E.M.P [10.05.2002 20:28:21]

#

Kätsy.

DestruX [11.07.2002 20:17:26]

#

Hauska.. tai onko koulu hauskaa? Ei! Loogisesti päätellen tämä skripti oli tylsä :(

No vitsi vain, ihan kätevä.

mgv [02.08.2002 22:00:26]

#

hmm... en oikein saanut toimimaan...

liekki [25.11.2002 05:33:29]

#

Ihan turha.

djMiksu [13.02.2003 10:44:11]

#

Kyl toi on ihan OK

djMiksu [13.02.2003 10:52:24]

#

Mut ei kyllä toiminu, mut muuten ois ollu iha ok

juhotan [13.05.2003 20:09:17]

#

Ei se tee niit vaik kuinka yrittäis!

Meitsi [17.10.2003 13:20:08]

#

Missä on esimerkki??

Teme [30.11.2003 12:43:14]

#

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.

stere [31.01.2004 22:08:20]

#

TURHA

E-P [12.02.2004 19:44:44]

#

On varmaan ihan kätevä, en oo viel kerenny testata

Thimon [11.09.2004 19:07:54]

#

noist <?php print $ma ;?> puuttuu " -merkit eli <?php print "$ma" ;?>

TETRIS [14.12.2004 22:02:26]

#

Ei tarvitse " merkkejä jos tulostaa pelkän muuttujan tjv.

Olli [30.04.2006 08:07:24]

#

Koodia voi testata painamalla alla olevaa linkkiä.
Testaa koodia

nerootto [15.06.2009 13:05:06]

#

Ei koko koodi toimi edes. Puuttuu vaikka mitä. Kannattaa laittaa täydellisesti toimivia, ei puolitäydellisesti toimivia.

Horny The Horrible [22.01.2010 08:21:37]

#

Ei toimi.


Sivun alkuun

Vastaus

Aihe on jo aika vanha, joten et voi enää vastata siihen.

Tietoa sivustosta