Nieprawidlowe wyswietlanie kodu

0

Mam taki problem, na serwerze vertrigo 2.23 dany kod xhtml ze skryptami php wyswietla sie poprawnie:
http://imageshack.us/photo/my-images/690/vertrigo223winxp.jpg/

Jednak kupilem lapka z windowsem 7, sciagnalem vetrigo (najnowsze 2.24) i wszystko sie sypie:
http://imageshack.us/photo/my-images/51/screenlz.png/

oto kod pliku rejestracja.php:

<form action="sprawdzenie.php" method="post">
<table>
<tr> <th>Nick:</th> <td> <input type="text" name="nick" <? if($_POST['nick_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_nick'];?>" /> </td> </tr>
<tr> <th>Imie:</th> <td> <input type="text" name="imie" <? if($_POST['imie_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_imie'];?>" /> </td> </tr>
<tr> <th>Nazwisko:</th> <td> <input type="text" name="nazwisko" <? if($_POST['nazwisko_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_nazwisko'];?>" /> </td> </tr>
<tr> <th>Haslo:</th> <td> <input type="password" name="haslo" <? if($_POST['haslo_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_haslo'];?>" /> </td> </tr>
<tr> <th>Powtorz haslo:</th> <td> <input type="password" name="phaslo" <? if($_POST['phaslo_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_phaslo'];?>" /> </td> </tr>
<tr> <th>Ulica:</th> <td> <input type="text" name="ulica" <? if($_POST['ulica_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_ulica'];?>" /> </td> </tr>
<tr> <th>Nr mieszkania:</th> <td> <input type="text" name="nr_m" <? if($_POST['nr_m_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_nr_m'];?>" /> </td> </tr>
<tr> <th>Kod pocztowy:</th> <td> <input type="text" name="kod_p" <? if($_POST['kod_p_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_kod_p'];?>" /> </td> </tr>
<tr> <th>Miasto</th> <td> <input type="text" name="miasto" <? if($_POST['miasto_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_miasto'];?>" /> </td> </tr>
<tr> <th>Email:</th> <td> <input type="text" name="email" <? if($_POST['email_error']==1) echo 'class="blad"';?> value="<?php echo $_POST['default_email'];?>" /> </td> </tr>
<tr> <td colspan="2"> <center><input type="submit" value="Zarejestruj"/></center> </td> </tr> 
</table>
</form>

Pierwsza linia kodu jaki generuje ten 'uszkodzony' skrypt:

<tr> <th>Nick:</th> <td> <input type="text" name="nick" <? if($_POST['nick_error']==1) echo 'class="blad"';?> value="aasddd" /> </td> </tr>

Nie za bardzo wiem co tu sie psuje i czemu na innym kompie wszystko bylo ok (ta sama przegladarka - chrome)

0

Nie zauważyłeś, że w źródle strony masz skrypty PHP w nietkniętej formie? To znaczy, że albo parser PHP nie działa, albo standardowo olał twój kod bo użyłeś short taga (<?) który nie jest wspierany. Zamiast <? pisz <?php. Pierwszy zapis jest niezalecany i w domyślnej konfiguracji interpreter pewnie go olewa.

1 użytkowników online, w tym zalogowanych: 0, gości: 1