You have echo "t"; which causes header() not to work, thus no redirect occurs (plus warning should be issued, you'd see it if you had error reporting on).
Also, are you trying to pass $_POST['redirect'] to another page? That won't work, $_POST is available only in the page the form is submitted to. Use session instead.