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!
Has anyone ever seen anything like this? I have an external page for in an iframe. The form in the iframe does a post and works in internet explorer 8, firefox 3.5, and safari on mac. This post doesn't work in internet explorer 6, 7 and safari on windows. The page can't find the child page variables using
Without being able to see the rest of your code its hard to say, but first thing I'd try is a simple:
print_r($_POST);
to see what variables are being passed to PHP. If that's got the values you expect from the form, the problem lies elsewhere.
Also, using IFRAME's there'll be a few security restrictions in place, so it could be some browsers are blocking things others aren't, again hard to say without seeing any code.
Problem is when I do a print_r($_POST); all the variables have no value in them. In the browsers where it works they have values. In the ones that it doesn't they blank. I figured it was a security issue, but it should at least return an errror no post the form with blank data.
There could be a problem in your HTML form? Cross-domain posting of FORMs is accepted without any problem, but javascript can't interact with windows from another domain. If you're using javascript to do any of the work there could be a security problem there, but afaik there's no restrictions on submitting a form from an iframe to any domain
As you say its the latest browsers that it works on (ie8 and ff3.5), could it be a standards issue (are you declaring a DOCTYPE?) or you're using some attribute or 'feature' thats only available in HTML5? Might be worth trying Opera and Chrome to see how they handle it?
If you take the same url that is in the iframe and load it in the web browsers and submit the form it works fine in any browser. The issue has to be something with the iframe, I created a page that is just an iframe in a blank html document and the page still errors out.
Well, best solution is to not use iframes if that's not possible, you may need to break out of the frame to submit the form if you cant find a solution. I would expect there to be some kind of workaround, might be worth asking on a forum specialising in HTML?