ok voy entendiendo ahora hice una preuba con un ejempo de las faqs y no me resulto
el scritp es este:
Código PHP:
<html>
<head>
<title>prueba de imagenes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="<?php echo $php_self ?>"method="post" enctype="multipart/form-data" name="ubicaform2" id="ubicaform2">
<input name="addubica" type="submit" id="addubica" value="subir imagen">
imagen: <input name="upimagen" type="file" id="upimagen">
</form>
<?php
if(isset($addubia)){
$newimagen=sprintf("fotos/%s",$upimagen_name);
move_uploaded_file($upimagen,$newimagen);
$link("conexion");//el servidor esta en internet es un hosting
mysql_select_db("imagen");
$sql="insert into imagen(imagen)values('$newimagen')";
$result=mysql_query($sql,$link);
}
?>
</body>
</html>
en este script que tendria que cambiar para que resultara de la form que dijo cluster