[eluser]aswath[/eluser]
[quote author="irimi" date="1261490876"]Hello,
I think the problem is more a PHP one than CI... But it's still a problem
I don't like it at all, but I'm using an iframe in a project, to obtain an image uploader into a form page, to avoid popup windows. All the project (main pages + uploader iframe) are coded with CI.
Of course I'm using an iframe, not a simple DIV, because of the "file input" tag, which can't be handled with AJAX alone into my main page.
So the iframe contains a form with text inputs, and a file input. When this form is submitted and validated, I want to redirect the iframe display to have a success message, thus cleaning the POST data. Unfortunately, if I use the redirect() function from the URL helper, the server returns a 400 ("Bad Request") error.
Is it possible, with or without the CI functions, to do a redirection within an iframe ?
Thanks.[/quote]