On Tue, Mar 27, 2012 at 8:41 AM, Christopher Svanefalk <christopher.svanefalk@xxxxxxxxx> wrote: > Addendum: what standard functions could I invoke to accomplish the file > system view part? > > On Tue, Mar 27, 2012 at 2:37 PM, Christopher Svanefalk < > christopher.svanefalk@xxxxxxxxx> wrote: > >> Dear all, >> >> I am rather green to PHP and web programming in general, and would just >> like some pointers how to accomplish the following. >> >> I have a webpage on a remote host, which supports PHP but does not have a >> DB installed. Here, I have a form where the user can input personal >> credentials, which are then processed and sent as an email message to me >> from the server. This part work so far. >> >> I want to do the following: the user should be able to upload his/her CV. >> To do so, I need the following: >> 1) A way for the user to open a conventional file system view to select >> the file to upload >> 2) A way to take this file, add it as an attachment to the mail created in >> the form, and finally send the mail + attachment to my mail. >> >> Is this possible to do without intermediary storage in a DB? I.e. is it >> possible just to pass the attachment directly from working memory to the >> function for sending email? Or does it have to go intermediare storage? >> >> Thanks in advance for any help! >> >> -- >> Best, >> >> Christopher Svanefalk >> >> > > > -- > Best, > > Christopher Svanefalk Yo don't need a db for this, but you will need to place the CV onto the file system so you can attach it to the email. Its not a hard process if you use something like phpmailer. Show user form with upload field process the form on the server (incl file upload) check the file extension to ensure you're not sending something bad create the email attach the file send log that you received the file and send the email unlink the file -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php