upload thumbnail

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
zuzupus
Forum Commoner
Posts: 70
Joined: Thu Jul 17, 2003 4:54 am

upload thumbnail

Post by zuzupus »

hi,

im new bie in PHP i got problem regarding uploading thumbnails from any location or if i just copy the image name in the below text field let say egg.gif it will upload the thumbnail is it possible or everytime i have to click on browse to get the complete location to get the thumbnail.
anybody please help to write the code for me so that when i sumbit the form i can get thumbnails in same page as well as when i add 2nd,3rd and so on it will add one another in same page like
3.egg.gif
2.flower.gif
1.bus.gif and so on

Code: Select all

<form action="" method="post" enctype="multipart/form-data"> 
<input type="hidden" name="tree" value="<?=$tree ?>" /> 
<table border="0" cellpadding="0" cellspacing="5"> 
<tr> 
<td>&nbsp;</td> --> 
<td align="right"><input type="file" name="file" /></td> 


<td colspan="5" align="center"> 
<br /><input class="biggray" type="submit" name="submit" value="TRANSFER" /> 
</td> 
</tr> 
</table><br /> 
</form>
Post Reply