![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 78 Pomógł: 0 Dołączył: 30.03.2002 Skąd: SANOK Ostrzeżenie: (0%) ![]() ![]() |
Ok po 2 godzinach siedzenia i przygladania sie ekranowi z napisem
Parse error: parse error, unexpected $ in /var/www/html/server.pl/fuck/index.php on line 56 mam już dość, może ktoś wie o co chodzi Kod <html>
<head> <title>Bez nazwy</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <script language="JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <form name="form1" method="post" action="index.php?id="> <select name="miasto" onChange="MM_jumpMenu('parent',this,0)"> <? if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file != "index.php") { echo "<option value="index.php?miasto=$file">$file</option>"; } } closedir($handle); } ?> </select> <br> <br> <select name="lokal" onChange="MM_jumpMenu('parent',this,0)"> <? if (isset($miasto)) { if ($handle = opendir($miasto)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file != "index.php") { echo "<option value="index.php?lokal=$file&$miasto">$file</option>"; } } closedir($handle); } } else { echo"<option>Najpierw wybierz miasto</option>"; ?> </select> <br> <br> <select name="cena" onChange="MM_jumpMenu('parent',this,0)"> </select> <br> <input type="submit" name="Wyślij" value="Wyślij"> </form> </body> </html> zaznaczam ze linia 56 to ta ze znacznikiem </html> wiecej pytań nie mam ?>[/php] |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 680 Pomógł: 0 Dołączył: 1.10.2002 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
[php:1:d08d6067c5][...]
<?php if( isset($miasto) ) { if($handle = opendir($miasto)) { while(false !== ($file = readdir($handle))) { if($file != "." && $file != ".." && $file != "index.php") { echo "<option value="index.php?lokal=$file&$miasto">$file</option>"; } } closedir($handle); } } else { echo "<option>Najpierw wybierz miasto</option>"; } // <-- Brakujacy nawias ?> [...][/php:1:d08d6067c5] php => Skrypty -------------------- "Czerp z innych, ale nie kopiuj ich. Bądź sobą." Michel Quoist
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 21:35 |