mdemetri2 Posted August 26, 2009 Share Posted August 26, 2009 Ok, I have been struggling with trying to find out how to be able to place on a form a way of uploading an image which will save to server, and place the image attributes in a databse i.e. name, size and url path but also allow for a preview on the form before it is submitted.... Does this make sense? Hope someone can through some light on this...its driving me mad. Quote Link to comment Share on other sites More sharing options...
ignace Posted August 26, 2009 Share Posted August 26, 2009 If you want 'no refresh' (altough it is also possible using a refresh) you'll need Ajax (JavaScript) and a script that will upload the image and return the full url to the stored image. Afterwards (after submitting the form definitly) you'll use the full url and store it along with the required attributes into the database. Quote Link to comment Share on other sites More sharing options...
ram4nd Posted August 26, 2009 Share Posted August 26, 2009 There are many tutorials about uploading files and inserting data into sql table. And to get data go to php.net and look for Filesystem Functions. 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.