mi è venuta 'na roba del genere:
Codice PHP:
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<script language="JavaScript">
function show_image()
{
var element = document.getElementById("file");
document.forms['form1'].pol.value = "file:///"+(element.value);
}
</script>
</head>
<body>
<?php
if(isset($_POST["pol"])){
echo "[img]".$_POST["pol"]."[/img]";
}
?>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="pol" id="pol" value="">
<input type="file" id="file" name="file" onChange="show_image()">
<input type="submit" value="invia">
</form>
</body>
</html>
spero ti possa servire ciaoo