Hi, I'm using the redirection syntax below, which results in the page being opened, but the username and password is requested in a dialogue box. header('Location: http://usernameassword@www.domain.com/'); Can usernameassword syntax be used in this code line? And if so, why is the dialogue box still displayed? Is it because the username and password is requested by dialogue box, rather than as part of the page? Thanks in advance. Ade
Please note that 'Location: http://usernameassword@www.domain.com/' should actually read as 'Location: http://username: password@www.domain.com/' without the space before the 'p' in password.
No, it's not allowed to use username and password like this in the HTTP Location header. Try redirecting in the HTML code via META refresh or JavaScript ...