Ok I got the mailing thing worked out, thanks _
But for the image prefixing, hmn...I don't qite understand, sorry--not feeling all that well so I can't really think today; this is a section of my coding:
$filename=$_POST['user_id']."_".$_FILES['image']['name'];
move_uploaded_file($_FILES['image']['tmp_name'],$directory.$filename);
chmod($directory.$filename,0644);
$user_id=(int)$_POST['user_id'];
mysql_query("INSERT INTO images (user_id,filename)VALUES($user_id,'".mysql_real_escape_string($filename)."')");
So, I'd need to either a) auto icrement my imagefile field in my db cos at the moment I have user_id (autoincremented) as the prefix which returns myimage.gif (without any number prefixed ><) into my db as a file name and uploads the image to my images folder as myimage.gif
Or do use the LIKE db function in my coding?