Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
A field that I can copy a picture to.
Old 02-06-2006, 04:57 AM A field that I can copy a picture to.
Average Talker

Posts: 28
Location: Australia
Trades: 0
Can someone please provide me with some code for a field on a page that I can copy a picture to ("drag and drop" or "copy and paste") ready for writing to a database.

Regards,

Glyn
GlyndwrBartlett is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-08-2006, 03:29 AM Re: A field that I can copy a picture to.
Skorch1's Avatar
Super Talker

Posts: 115
Location: California
Trades: 0
That would be nice but I tyhink you're going to have to do

[html]
<form>
<input type="file" name="upload_me" />
<input type="submit" value="Upload a Picture" />
</form>
[\html]
It's very simplistic and you will have to process the submitted form data using a scripting language.

I would use PHP and it's built-in filesystem functions You can learn all about it here.

http://www.php.net/manual/en/ref.filesystem.php

hint look up move_uploaded_file() or is_uploaded_file()
__________________
Check out my
Please login or register to view this content. Registration is FREE
website!
Skorch1 is offline
Reply With Quote
View Public Profile Visit Skorch1's homepage!
 
Old 02-09-2006, 02:18 AM Re: A field that I can copy a picture to.
Average Talker

Posts: 28
Location: Australia
Trades: 0
Hi Skorch,

Thanks for that, greatly appreciated.

Some one else told me that I should not be storing images in a DB (MySQL) as it is too slow. I should just store an address of the image. This could be cumbersome. What are your thoughts?

Regards,

Glyn
GlyndwrBartlett is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A field that I can copy a picture to.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11944 seconds with 12 queries