Recently, I have been developing some applications for Facebook, and I always had the same problem: I cannot find a way to submit the form using the POST method in iFrame Facebook applications. The return is $_POSTalways empty.
One patch I found is to submit my data using a form using the GET method and submit it to a script canvas page like this: <form action="<?php echo CANVAS_PAGE; ?>script.php" method="GET" >
and then get my data through $_REQUEST. I tried any combination of the POST / GET method with the CANVAS_PAGE/script.php/ CANVAS_URL/script.php/ action script.php, and this is the only thing that really works. At least for me.
Now the problem is that I need to upload the file, and then I have to use the POST method and then return to the original problem -> I can not find a way to submit the form using the POST method. The return is $_POSTalways empty!
Does anyone have an answer to this question?
source
share