yo usaria una classe para lo que pretendes... y mas aun, no hace falta ni gd pero bueno... aqui te dejo algo que te puede servir de orientacion...
fichero formulario
Código PHP:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.testo {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.titulo {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bolder;
color:#FFFFFF;
}
.eu {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
-->
</style>
</head>
<body>
<table align="CENTER" width="500" border="0">
<tr>
<td bgcolor="000099" colspan="2"><div align="center" class="titulo">Sube Tu Imagen / Banner</div></td>
</tr>
<tr>
<td height="10" colspan="2">
<div align="left" class="eu">
</CENTER>
</td>
</tr>
<tr>
<td height="10" colspan="2"><div align="center">
<?php
include_once("class.upload.inc.php");
if ( $send == "ok" && $_FILES[fichero]['name'] ){// del formulario sacamos el boton ok, comienza la classe upload
$upload = new upload();
if ($upload -> putFile ("fichero")) {
$imagen = $upload->file_name;
}
}
?>
</div></td>
</tr>
<form action="<?php $PHP_SELF; ?>" method="post" enctype="multipart/form-data"> <tr>
<td colspan="2">
<p align="center">
<input name="fichero" type="file" class="testo">
</p>
</td>
</tr>
<tr>
<td colspan="2"> <p align="center">
<input name="Submit" type="submit" value="Subir Fichero" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
--------------------