View file redir.php
<?php include 'sys/db.php'; include 'sys/conf.php'; include 'sys/start.php'; include 'sys/functions.php'; $ank=mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = $ank[id]")); if (isset($user)) { $ank['login']=$user['login']; if (isset($_GET['login'])) { $ank['login']=intval($_GET['login']); } } header ("Location: anketa.php?login=$ank[login]"); exit; ?>