1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by forumposters
0

Perhaps someone could just help me convert the PHP line below from PHP to Coldfusion and that would be a good start.

<?php
$ftmp = $_FILES;
$oname = $_FILES;
$fname = 'upload/'.$_FILES;
if(move_uploaded_file($ftmp, $fname)){
?>
<html><head><script>
var par = window.parent.document;
var images = par.getElementById('images');
var imgdiv = images.getElementsByTagName('div')[<?=(int)$_POST?>];
var image = imgdiv.getElementsByTagName('img')[0];
imgdiv.removeChild(image);
var image_new = par.createElement('img');
image_new.src = 'resize.php?pic=<?=$oname?>';
image_new.className = 'loaded';
imgdiv.appendChild(image_new);
</script></head>
</html>
<?php
exit();
}
?><html><head>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.