I have an html form, when the user clicks submit, the .php form handler needs to post an image to the posted back html document. I have hard coded the file path as a variable but I get a broken image icon. (.img)
here is my code from the php file:
//process.php
- Code: Select all
<html><body>
<?php
//$item = $_POST['item'];
$item ="2010";
$url = "C:\wamp\www\FORM PROCESSING\Climate_Images\Portland Climate Summary for Year " . $item .".png";
echo "<img src=\"$url\"";
?>
I am using WAMP for dev on localhost. Just wondering if I need to do something to config the mime types or if maybe my php syntax is incorrect?
Thank You , Brian

