I have this in the form:
<input type="file" name="question_pic" size="50">
When the user clicks on submit he should view the picture on the screen but this is not happening instead I got some strange char on the screen!
This PHP code should view the picture:
<head>
<body>
The Preview Page.
<?
$pic=addslashes(fread(fopen($question_pic,"rb"), filesize($question_pic)));
?>
<img src="<?echo $pic; ?>">
</body>
</head>
Please HELP!