I am developing an application which uploads images into user's profile.I manage to do this by referring this blog
https://developers.facebook.com/blog/post/498/
Everything works fine and display the 'id' of the uploaded image.
Now I want to take this id into a variable and pass it to another file without displaying 'id' of the image(Lets say I want to pass this id into a.php file and display the 'id' using 'echo' command).
Can any one help me to do this? I think this is not a difficult task.Since I have vary poor knowledge about php, I cannot figure out any way.
Can any one please please help me to solve this problem.
Thanks.
What do you mean by "pass into another php file?" If you mean reload the page but with passing the ID you can use $_GET array.
Simply, after receiving the id from uploaded photo you can call function:
header('location : http://yourdomain.com/a.php?id='.$id_of_photo);
and then in a.php you can get it by accessing $_GET array
if(isset($_GET['id'])) {
echo 'uploaded photo id is: '.$_GET['id'];
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.