anthonydamasco Posted January 17, 2007 Share Posted January 17, 2007 I have a search scripted,www2.rubberduck4x4.com/OEM/its a simple search, and it has a simple database, partidpartnumberdescriptionpricecatagoryI want to apply images to the search, so my plan is to match the "partnumber" with the image nameexample Part# 1101 would be translated to 1101.jpg so all i would have to do is $partnumber.jpgSo I'm looking for a script that can upload and rename the file to match the part number, The partnumber will be entered on the same form that the image is uploaded, so it seems easy. I just dont know php enough to really understand the scripts that I've readany assistance would be great Quote Link to comment Share on other sites More sharing options...
fiat Posted January 18, 2007 Share Posted January 18, 2007 this code relates only to uploading the file[code]<form action="" method="post" enctype="multipart/form-data"><table align=center><tr><td>File to upload:</td><td><input type="file" name="partpicture" /></td></tr><tr><td></td><td><input type="submit" value="upload and process" /></td></tr></table><?phpif($_FILES) {$partpicture = $_FILES['partpicture']['tmp_name'];$partpicture = $partnumber.'.jpg';}[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.