Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> nie wiadomy blad
frogger14
post 7.05.2004, 12:47:22
Post #1





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 1.02.2004
Skąd: ziemia

Ostrzeżenie: (0%)
-----


[php:1:481d21fffe]<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"><LINK href="style.css" rel=styleSheet type="text/css"></head><body><? @copy($naz1, "$naz2"); require("haslo.txt"); @show_source("$co"); if($HTTP_POST_VARS['pass']!="$haslo"){
echo"<center>Złe hasło!<br><bR><a href=java script:history.back()>Powrót</a>";
exit;
} if(($HTTP_GET_VARS['com'] == dodaj) && ($HTTP_POST_VARS['pass']!="")){
?><FORM ACTION=admin.php?com=zapisz METHOD=POST>
<INPUT type=hidden NAME=pass value="<? echo $HTTP_POST_VARS['pass']; ?>">
<table border=0 height="110"><tr>
<td valign=top height="1">
<font color=black face=verdana size=1>Dodaje:</td><TD height="1">
<input size="30" name="kto">
</select><br>
</td></tr>
<tr><TD valign=top height="1">
<font color=black face=verdana size=1>E-mail:</td><TD height="1">
<input size="30" name="mail">
</select><br>
</tD></tr>
<tr><td valign=top height="17"><font color=black face=verdana size=1>Temat:</td>
<td height="17"><INPUT NAME=temat size="30"></td></tr><tr>
<td height="67"><font color=black face=verdana size=1>Tre&para;ć:</td>
<td height="67"><TEXTAREA NAME=tresc rows="5" cols="43"></TEXTAREA></td></tr></table><INPUT TYPE=SUBMIT value="Dodaj Newsa"></FORM>
<center>
<?
}
if(($HTTP_GET_VARS['com'] == zapisz) && ($HTTP_POST_VARS['pass']!="")){
$filesize = filesize("news.txt");
$data=date('d.m.Y, H:i:s');
$file = fopen("news.txt","r");
$aler = fread($file,$filesize);
fclose($file);
$file = fopen("news.txt","w");
fputs($file,"<table width="500" class="bodyline" border="0" cellpadding="5" bgcolor="DCDCDC" cellspacing="1">
<tr><td><img border="0" src="image/02.gif">&nbsp;&nbsp;<strong>$temat</strong></td></tr>
<tr><td></td></tr><tr><td></td></tr>
<tr><td bgcolor="#FFFFFF">$tresc</td></tr>
<tr><td bgcolor="#FFFFFF"><b>Dodał:</b>&nbsp;&nbsp;<a href=mailto:$mail>$kto</a>&nbsp;&nbsp;&nbsp<b>Data:</b>&nbsp;&nbsp;$data</td></tr>
</table><br>n $aler");
fclose($file); echo"News został dodany<br><br><a href=news.php>POKAŻ</a>";
} ?></center></body></html>[/php:1:481d21fffe]

I wyskakuje mi Parse error on 32 lline
O co chodzi moze ktos powiedziec ?


--------------------
Froger Home Site
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
czachor
post 7.05.2004, 12:54:44
Post #2





Grupa: Zarejestrowani
Postów: 897
Pomógł: 40
Dołączył: 16.12.2003
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


cudzysłowia Ci się kłócą... zmień tam na:
[php:1:2ec8eee4d7]<?
fputs($file,'<table width="500" class="bodyline" border="0" cellpadding="5"
bgcolor="DCDCDC" cellspacing="1">
<tr><td><img border="0"
src="image/02.gif">[space][space]<strong>'.$temat.'</strong></td></tr>
<tr><td></td></tr><tr><td></td></tr>
<tr><td bgcolor="#FFFFFF">'.$tresc.'</td></tr>
<tr><td bgcolor="#FFFFFF"><b>Dodał:</b>[space][space]<a href=mailto:'.$mail.'>'.$kto.'</a>[space][space]&nbsp<b>Data:</b>[space][space]'.$data.'</td></tr>
</table><br>n '.$aler;
?>[/php:1:2ec8eee4d7]


--------------------
how many SEO experts does it take to change a light bulb,lightbulb,light,bulb,lamp,lighting,switch,sex,xxx
5-Reasons-why-you-should-NEVER-fix-a-computer-for-free
Go to the top of the page
+Quote Post
Draugfor
post 7.05.2004, 15:24:50
Post #3





Grupa: Zarejestrowani
Postów: 131
Pomógł: 0
Dołączył: 13.07.2003
Skąd: Torun/Poznan

Ostrzeżenie: (0%)
-----


Mozesz tez pozmieniac znaki " na ". Wtedy nie beda interpretowane jako poczatek stringu, tylko jako po prostu cudzyslow.
[php:1:b925dfc550]<?php
fputs($file,"<table width="500" class="bodyline" border="0" cellpadding="5"
bgcolor="DCDCDC" cellspacing="1">
?>[/php:1:b925dfc550]
itd.
Pozdrawiam


--------------------
On the day I was born, the nurses all gathered 'round
And they gazed in wide wonder, at the joy they had found
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 09:44