Datuve :: Forums :: Arhīvs :: Kas šajaa kodaa nav pareizi?

Datuve

Mana Datuve

Reģistrācija | Noteikumi | Paroles atjaunošana



Forums

Ieskaties


Raksti

Lietotāji online

Lietotāji online: 89

Reģistrētie lietotāji online: 0

Viesi online: 89

Datuve.lv video
Top.LV

Kas šajaa kodaa nav pareizi?

Ievietoja: TEST^ @ 2007.11.20 23:16  

<?
echo "<card id=\"say\" title=\"Pievienot\">";
print '<p align="left">';

$id=htmlspecialchars(stripslashes(trim($id)));
$msg=htmlspecialchars(stripslashes(trim($msg)));
$login=htmlspecialchars(stripslashes(trim($login)));
$email=htmlspecialchars(stripslashes(trim($email)));

print 'Niks:<br/>';

$l = mysql_query("SELECT login FROM recs where ip='".$REMOTE_ADDR."' and brows='".$HTTP_USER_AGENT."' and time2>'".$timeb."' order by id desc");
$lf = mysql_fetch_array($l);
$entered=$lf["login"];

$code = str_replace('.', '', $addr);
$code = str_replace('0', '1', $code);
$code = str_replace('2', '3', $code);
$code = str_replace('4', '5', $code);
$code = str_replace('6', '7', $code);
$code = str_replace('8', '9', $code);

?>

<input name="login<? echo $ref; ?>" value="<? echo $entered; ?>" maxlength="16" emptyok="false"/><br/>
Teksts:
<br/>
<input name="msg<? echo $ref; ?>" value="<? echo $lgn; ?>" maxlength="200"  emptyok="false"/><br/>
E-mails:<br/>
<input name="email" maxlength="32" emptyok="true"/><br/>



<anchor>Pievienot<go href="add.php?id=<? echo htmlspecialchars(stripslashes(trim($id))); ?>&ref=<? echo $ref; ?>" method="post" sendreferer="true">
<postfield name="id" value="<? echo htmlspecialchars(stripslashes(trim($id))); ?>"/>
<postfield name="login" value="$(login<? echo $ref; ?>)"/>
<postfield name="email" value="$(email)"/>
<postfield name="msg" value="$(msg<? echo $ref; ?>)"/>
<postfield name="code" value="<? echo $code ?>"/>
<postfield name="translit" value="$(translit)"/>
</go></anchor>
<?
echo "<br/><a href=\"index.php?id=$id&ref=$ref\">Viesugrāmata</a><br/>";
?>
</p>
</card>
</wml>
<?

exit;
mysql_close($link);
?>