Hello! Everyone, I am currently making my project which involoves images to be automatically uploaded to ImageShack. I signed up to ImageShack API and here is the link Now I want the "Transloading" method in which I supply a url to the imageshack server and it automatically uploads to it. Now as soon as I do it there is a XML page with all the links to the uploaded image. But as ImageShack says "To show the user the results of his or her upload, redirect the user to <done_page>." Now I DO get the done_page after the upload is complete in the XML data. Now my question how do I exactly forward the user to the <done_page> as soon as the upload is complete ? Thanks in Advance! 3l3ctr1c
/* Send location headers */ header("location: $done_page"); /* Print meta refresh tags */ echo "<meta http-equiv=\"refresh\" content=\"2;url=$done_page\">"; PHP: I'm assuming you have a way of parsing the xml and extracting the done_page url from it....you're more likely to have better luck with meta refresh, that is unless all processes are handled before the first <html> tag or the first time php echos, drawback of using meta refresh in the middle of the page is the css will no longer be valid, but then that won't matter as ppl won't be sticking around
"I'm sorry I don't understand, do you want to redirect user after upload is completed?" yes to the done page. krakjoe: Thanks I`ll try that and yes all the php functions are done before the first <html> tags itself.