Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

File attachments with PHP

How do you script for attaching a user's file for emailing

3:29 am on Mar 13, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 13, 2003
votes: 0

I'm halfway through my third "learn in 24 hrs." book. I still have numerous nagging questions. The big one that has not been addressed is how I can make my script preform these two seperate functions. The first function is adding all user variables into the mySQL database, I think I have this one under my thumb.

Here's the second trick: How do I allow a user to attach a picture or word file THAT WILL BE SENT SEPERATELY TO MY EMAIL ADDRESS? So,it needs to open a file attachment window that allows the selection of the attachment(s). Then, when they submit, variables go into database / attachment comes to my address.

Anyone know any tricks? Thanks ;

8:33 am on Mar 13, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 14, 2002
votes: 0

Hmmm, not done that myself, but my research route (assuming a your a complete newbie) would be:

1. Find out how to email.

2. Find out how to upload files to the web server.

3. Find out how to attach files to an email.

Google & PHP.net would be places to start, along with phpbuilder.com. From those you should be able to find all the links you need :)