Location in XMLHttpRequest (using PHP)
===

I am using this code in my web application to do the login:

[http://www.developphp.com/view.php?tid=1185][1]

in the my_parse_file.php, after it echos:

    Thank you '. $_POST['firstname'] . ' ' . $_POST['lastname'] . ', says the PHP file


I want it to wait 2 seconds and then redirect to another page.

I tried putting this under the echo:

    header('Refresh:3 ; URL=selector.php');


But it doesn't work, is there a diffrent way you have to re-direct in XMLHttpRequest?


  [1]: http://www.developphp.com/view.php?tid=1185