Okay, I'm insane, or something... I'm running php on IIS6 Win2003, localhost...
I have an echo.php file...
<?php
echo $_GET['echo'];
?>
I use an html page with a form to submit, and the value of echo is...
I have no problems, the image displays, when I use IE to File -> Save As -> Web Page, complete
It saves the php page, and the image file in a folder.
However, if I change $GET to $POST (and the corresponding change to the html form), the image will display fine in echo.php, but when I try to save "Web Page, Complete in IE, it will not save the image file into the folder... it only saves the php page.
I view source, it looks the same...
So I test it out, I do....
$foo = "<img src=http://url/ANOTHERimage.jpg>" . $_POST['echo'];
echo $foo;
Then try to save web page, complete... it saves "ANOTHERimage.jpg" just fine, but not the image passed by $_POST...
I tried stripslashes, and every decoding function I can find, and nothing works... I can strcmp a string to the $POST['echo'], they seem identical, but for some reason when it's the $POST, IE won't save it.
Now, even if IE is screwing up somehow, how does it know that one string comes from $_POST, and one doesn't?
I hope I made some sense, because this is driving me nuts.