Leon1958, вот:
index.php
<?php
if (isset($_GET['ID'])) {
setcookie('ID', $_GET['ID']);
$url = $_SERVER['REQUEST_URI'];
$url = substr($url, 0, strpos($url, '?'));
header('Location: ' . $url);
}
?>
<p>Hello brother!</p>
<p><a href="form.php">Fill the form please</a></p>
form.php
<?php
$id = isset($_COOKIE['ID']) ? $_COOKIE['ID'] : '';
?>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
<fieldset>
<p><label for="id">Your ID</label></p>
<p><input id="id" name="id" type="text" value="<?php echo $id ?>" /></p>
<p><label for="req">Your request</label></p>
<p><input id="req" name="req" type="text" value="" /></p>
<p><input id="form_submit" name="form_commit" type="submit" value="Send request" /></p>
</fieldset>
</rotm>
Спустя 145 сек.
Troy, извини не заметил.
ιιlllιlllι унц-унц