Disappearing POST values and a redirect did not occur error

We have a program that had been working for years that seems to be suddenly losing the post data that is being sent to it.
This code is used to open a separate window on a button click.
<input type="button" value="CopyLocker" name="LogoLocker" border="0" onclick="openWindowWithPost('','LogoLockerPHP', new Array('myopt','myoptname','myuser','storenumber','productcode','locker' ), new Array('attr-PTKD500-DEALERCOPY-','Personalization','email','20150701007','PTKD500','CopyLocker'));">

Open in new window

function openWindowWithPost(url,name,keys,values){
	var newWindow = window.open(url, name, 'width=650,height=350,resizable=1,scrollbars=1');
	if (!newWindow) return false;
	var actionURL = "/folder/file.php";
	var html = "";
	html += "<html><head></head><body><form id='formid' method='post' action='" + actionURL + "'>";
	if (keys && values && (keys.length == values.length))
		for (var i=0; i < keys.length; i++)
			html += "<input type='hidden' name='" + keys[i] + "' value='" + values[i] + "'/>";
							
	html += "</form><script type='text/javascript'>document.getElementById('formid').submit();</script></body></html>";	
			
	newWindow.document.write(html);
	newWindow.focus();
	//return newWindow;
	return false;
}

Open in new window

I've tried doing the below in order to see the raw post data since the $_POST is empty but nothing ever shows up.
 $rawdata = file_get_contents('php://input');
$urldecoded = urldecode($rawdata);
print_r($urldecoded);
print_r($HTTP_RAW_POST_DATA);
echo "raw data";
sleep(3);

Open in new window


Also when I put the sleep in I notice that the submit at the folder level shows a failure to redirect error. The page will the show up at the right page but with all of the post data missing.

The kicker of all this is that the code is connected to several different sites and only one that we know of is having this problem, the others seem to be working correctly. We cannot find any setting differences or set up errors on the one site that is having this issue. Also only has shown up in the production instance which makes debugging a bit tricky since all of the sites use shared code.
LVL 13
haloexpertsexchangeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Do you have a link we can look at?
hieloCommented:
Do you have a  popup blocker enabled?  Does it fail when you try submitting from different client computers?
haloexpertsexchangeAuthor Commented:
Unfortunately no, the sites are proprietary and not available to the public.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

haloexpertsexchangeAuthor Commented:
No popup blockers that I am aware of, and this is something that has shown up on several different people's computers so it is not just something that is isolated.
hieloCommented:
Try installing HttpFox in Firefox.  Once installed, launch HttpFox, press the "Play/Capture" (green) button, then launch your page.  The network traffic should be reflected in that window.  Once captured,  stop the capturing then click on the network requests to see what server code you are getting.
haloexpertsexchangeAuthor Commented:
Well now I know why the post data is missing, it seems that just for this one site when the window is opened, an extra stop is being made in the root of the site, which it shouldn't be making and this is where the
A Redirect did not occur
error is coming from, and then it ends up going to the correct page, but with all of the posted data being removed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
haloexpertsexchangeAuthor Commented:
Well I found out why the redirect error is occurring, that was from the index.html that was at the root of the site. Not an actual error thrown by the browser.
Still not sure why the site was going there to begin with.
haloexpertsexchangeAuthor Commented:
This was solved by going a different way with the connection but some of the behavior seen was because of the updates listed and I found httpfox very informative.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.