php header redirect - firefox security prompts to open file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cjkeane
Forum Contributor
Posts: 217
Joined: Fri Jun 11, 2010 1:17 pm

php header redirect - firefox security prompts to open file

Post by cjkeane »

Hi everyone,

i have a dilema. on some of my pages when i use header redirect code, firefox brings up a security confirmation prompt to open the page instead of just redirecting to the page. is there any way to redirect to a page without firefox bringing up the security prompt? i'd appreciate some guidance. thanks.

the code to redirect to a new page, i'm using, is below.

Code: Select all

$page ="detailspage.php?idnumber=" . $idnumber;
		// refresh page so data is current
		header("Refresh: 10; url=$page"); 
		echo " "; // NN4 requires that we output something...
incubi
Forum Contributor
Posts: 119
Joined: Mon Dec 07, 2009 1:47 pm

Re: php header redirect - firefox security prompts to open

Post by incubi »

Your code is working for me in Firefox 3.6 I don't have many of the security settings active in my setup. What version of Firefox are you using?

Lee
Post Reply