<html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" /> </head> <body> <?php echo '<form action="" method="post"> <table><tr><td>Nazwa:</td><td style="width:100%"> <input type="text" name="pole1" style="width: 100%;" /></td></tr><tr><td>URL:</td><td style="width:100%"> <input type="text" name="pole2" style="Width: 100%;" /></td></tr></table> <input type="submit" value="Zapisz" /> </form>'; } else { $dane = $pole1."`".$pole2."\n"; $file="galeria.txt"; } ?> <table> <?php $end = 10; foreach($file as $value) { ++$i; if($i <= $end) { } } ?> </table> </body> </html>
Problem polega na tym, że tekst w kodzie który wyróżniłem(linia 50) nie jest traktowany jako kod HTML.
http://www.royson.lua.pl/test2/galeria22.php
Spotkaliście się kiedyś z czymś takim?