Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Lista gier</title>
- <link rel="stylesheet" type="text/css" href="cw14.css">
- </head>
- <body>
- <div id="baner"><a href="cw14.php">LISTA GIER</a></div>
- <div id="menu">
- <ul>
- <li>
- <a href="cw14.php">Spis gier</a>
- </li>
- <li>
- <a href="dodaj.php">Dodaj grę</a>
- </li>
- <li>
- <a href="http://gry-online.pl">Informacje o grach</a>
- </li>
- </ul>
- </div>
- <div id="content">
- <?php
- if(isset($_GET)){
- $dane = file("dane.txt", FILE_IGNORE_NEW_LINES);
- $id = intval($_GET['id']);
- echo "Edytujemy gre: <br>";
- $row = explode('|', $dane[$id]);
- print_r($dane[$id]);
- }
- ?>
- <form method="POST" action="editnew.php">
- <fieldset>
- <legend><b>Edytuj grę</b></legend>
- <div class="line">
- <label>Tytuł:</label>
- <input type="hidden" value="<?php echo $id?>" name="id" />
- <span class="error"></span>
- </div>
- <div class="line">
- <label>Tytuł:</label>
- <input type="text" name="tytul" id="tytul" id="tytul" value="<?php echo $row[0]?>" />
- <span class="error"></span>
- </div>
- <div class="line">
- <label>Gatunek:</label>
- <input type="text" name="gatunek" id="gatunek" id="gatunek" value="<?php echo $row[1]?>" />
- <span class="error"></span>
- </div>
- <div class="line">
- <label>Cena:</label>
- <input type="text" name="cena" id="cena" id="cena" value="<?php echo $row[2]?>" />
- <span class="error"></span>
- </div>
- <input type="submit" value="Dodaj" class="button"/>
- </fieldset>
- <form>
- </div>
- </div>
- <div id="stopka">Lista gier 2017 opracowano ...</div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement