Log in

View Full Version : big demands =P



dogeeseegod
01-14-2008, 10:34 PM
My wife and I are building a website and we have some questions and possible requests.

ok, lets begin with the idea: we want a form where people can upload pictures that will be sent directly to the hosting email. ie. we own roastedphoto.com and we want the uploaded pictures & user info sent to racheal@roastedphoto.com. from there we will edit them and mail them back.

our idea of the page will look like this:

Fields:

Name
email address
contact phone
<upload bar> X5 with [Browse] buttons

is this something that will be expensive? could there be alot of problems with a setup like this?

Any information is Very appreciated,
Leo

thanks guys =)

djr33
01-15-2008, 12:06 AM
http://www.php.net/manual/en/features.file-upload.php

Set up a basic upload form; send an email. The file input field can upload the image, and I'd suggest storing the image on your server. Place a link to that file in the email sent to you.

You could also setup a more complex system if desired, in which you can create a database (or just set of text files) on the server which you can log in to, rather than having an email every time someone posts. Go there, check for new requests, do what you'd like, etc.

It's also possible to attach an image to the email just as you would from your mail client, but the protocols for attachments can be a pain and it might also, if the file is large enough, cause it to bounce (not be received by your email service). Storing it on the server is also just more secure-- no chance of the email getting lost or corrupt. One less step, one less bit of code to write, and no real harm.

The form is just html. That's easy. <input type="TYPE"> the first two will be text, the last "file", and that will setup the "browse" button, etc.

dogeeseegod
01-17-2008, 12:36 PM
Awesome! Thanks for your help man. I looked at the form and it seems to be very easy to use. I really appreciate you taking the time to find the link and put a valuable explanation with it. Check out the first version of our site launch: www.roastedphoto.com this one doesn't have the form yet, it was more of a test of my html skills =P now that I am more confident in my ability to create and publish, I'm gonna go crazy on this site!

you're a real gentleman, thankyou,

leo