I have a .swf and it posts the content to save.php however i dont have a save.php prepared. I donno what code i should put in the save.php to get the content posted there. Here is the content post code from .swf loc3 = new flash.net.URLRequestHeader("Content-type", "application/x-www-form-urlencoded"); (loc4 = new flash.net.URLRequest(p.rooturl + "/save.php?name=" + arg2 + "&type=" + arg1)).requestHeaders.push(loc3); loc4.method = flash.net.URLRequestMethod.POST; loc4.data = arg3; flash.net.navigateToURL(loc4, "_self"); Close(); Code (markup): what code i should put in the save.php to show the content sent from the above swf code?
It gave me only this on a blank page MS_29281.jpg jpg "MS_29281" is the file name. I think there is something wrong with the code.
Then is there a way to fix my code? I mean i just want it to post the picture on save.php I dont care about the name or type or whatever. I just need the picture to be posted. Do you think you can edit the code so i can recompile the swf?
Change path_to_picture/ to where your picture is relative to the save.php file. <?php echo '<img src="path_to_picture/'.$_GET['name'].'" border="0" />; ?> PHP:
Picture is coming from the computer. There is no temp folder either. I donno where the picture is coming from exactly. Everything is in the same folder.
I get this now... Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/site/public_html/deneme/save.php on line 2 Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/site/public_html/deneme/save.php on line 2 Code (markup): I have this on save.php <?php echo '<img src="'.$_GET['name'].'" border="0" />; ?> Code (markup):
/deneme/save.php?name=MS_29310.jpg&type=jpg adress gave me an empty picture which is like a broken link with this page source code <img src="MS_29310.jpg" border="0" /> Code (markup): Thas it.
So what do you think this means ? Don't expect everything given to you up front.... This means that the picture MS_29310.jpg is NOT in the same folder as save.php.
Well there is no folder. I ll tell you what is in the folder. the swf, index.html and save.php the swf gets the image from your computer for temporary and after you edit the pic you press on save and it extracts the picture to save.php I dont think it puts the picture to anywhere.
I don't understand what you want anymore... To show a picture on the screen or to copy a picture from somewhere ?
To show the picture on save.php Because after you click on save in swf it should send the picture to save.php but save.php doesnt grab it.