PHP-Code:
<script type="text/javascript">
function showpic(){
sym.innerHTML = "<img src=\"" + document.formular.pic[0].value + "\" alt=\"\">";
}
</script>
<form name="formular">
<input type="file" name="pic[0]" size="50"><input type="button" value="Vorschau" onclick="showpic()">
<table>
<tr>
<td id="sym">
</td>
</tr>
</table>
warum plötzlich "document.formular.pic.0"???
Kommentar