File size: 1.42Kb
<html>
<head><title>тЕДБЛФЙТПЧБОЙЕ ЪБРЙУЙ Ч ЗПУФЕЧПК ЛОЙЗЕ</title></head>
<body>
<?php
include '../wap/config.php';
if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) {
echo ("пЫЙВЛБ РПДЛМАЮЕОЙС Л вд!\n");
};
$res=pg_query($conn,"SET CLIENT_ENCODING TO 'KOI8';");
$res=pg_query($conn,"select id,name,email,message,reply,moder from wapgbk where id=$id;");
pg_close($conn);
$id=pg_result($res,$i,0);
$name=pg_result($res,$i,1);
$email=pg_result($res,$i,2);
$message=pg_result($res,$i,3);
$reply=pg_result($res,$i,4);
$moder=pg_result($res,$i,5);
?>
<FORM METHOD=POST ACTION="book_update.php">
<?php echo"<INPUT TYPE=HIDDEN NAME=\"id\" VALUE=\"$id\">" ?>
<table><tr><td>йНС:</td><td>
<?php echo"<INPUT TYPE=TEXT NAME=\"name\" VALUE=\"$name\" SIZE=60>" ?>
</td></tr><tr><td>E-mail:</td><td>
<?php echo"<INPUT TYPE=TEXT NAME=\"email\" VALUE=\"$email\" SIZE=60>" ?>
</td></tr><tr><td></td><td>
<?php if (!$moder) print "<input type=checkbox name=\"moder\" value=\"1\" checked>";
else print "<input type=checkbox name=\"moder\" value=\"1\">"; ?>
рХВМЙЛХЕФУС
</td></tr></table>
уППВЭЕОЙЕ:<BR>
<TEXTAREA NAME="message" ROWS=5 COLS=60>
<?php echo $message ?>
</TEXTAREA>
<p>
пФЧЕФ:<BR>
<TEXTAREA NAME="reply" ROWS=10 COLS=60>
<?php echo $reply ?>
</TEXTAREA>
<P>
<INPUT TYPE=SUBMIT VALUE="рЕТЕУМБФШ">
<INPUT TYPE=RESET VALUE="пЮЙУФЙФШ">
</FORM>
</body>
</html>