АR
Size: a a a
АR
S
S
А
А
А
АЯ
S
А
<?php
$text = htmlspecialchars($_POST["name"]);
if(!empty(trim($text))){
$iu = $_SERVER['REMOTE_ADDR'];
setcookie( "name", $text, time() + 86400*3650, "/");
header("Location:echo.php");
exit();
}
else{
header("Location:index.php");
exit();
}
А
А
А
А
<?php
$text = htmlspecialchars($_POST["name"]);
if(!empty(trim($text))){
$iu = $_SERVER['REMOTE_ADDR'];
setcookie( "name", $text, time() + 86400*3650);
if (isset($_COOKIE["name"])) {
echo "<a href='echo.php'>Вперёд</a>".$_COOKIE["name"];
}
else{
header("Location:index.php");
exit();
}
?>
А