I've done this before in the past, but have lost my notes and can't figure out what I am doing wrong.
I upload an image from a form and read that image into a variable:
$_handle = fopen($_FILES[tmp_name]));
fclose($_handle);
[/code]
To display the image, I am using:
[code]
if ($data[display_image]) {
$_form .= '<img src="' . $_file_content . '" width="200" alt="" border="1"><br />';
}
[/code]
Instead of displaying the image, it displays the character string. Can anyone help me out a little. NOTE: I must use an <img> tag instead of simply an echo or print command because I am building the page from a sub-routine. Any assistance would be GREATLY appreciated.
I upload an image from a form and read that image into a variable:
Code:
$_handle = fopen($_FILES[tmp_name]));
fclose($_handle);
[/code]
To display the image, I am using:
[code]
if ($data[display_image]) {
$_form .= '<img src="' . $_file_content . '" width="200" alt="" border="1"><br />';
}
[/code]
Instead of displaying the image, it displays the character string. Can anyone help me out a little. NOTE: I must use an <img> tag instead of simply an echo or print command because I am building the page from a sub-routine. Any assistance would be GREATLY appreciated.