Jump to content

How to select & send an attachment from an html form input


hedgehog

Recommended Posts

Hi,

 

I'm trying to set up a very simple form which will allow a user to input a name and an email address, and then choose a file from his local disk to attach to the email which will be sent when he presses the 'submit' button.

 

I've had no trouble with forms generating emails, and no trouble with a script which allows people to select files from their HD and upload to a specific directory on a webserver, but when I try to amalgamate the two and introduce snippets from other  'attachment' scripts I end up with some completely rubbish abomination which does nothing useful except save me some money at the hairdresser's.

 

I don't need any fancy file-size or file-type checking/validation. If anyone could show me a very simple script I'd happily pay them a high-quality chocolate biscuit, all the way from the UK.

 

Thank you very much in advance,

 

Al

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.