Im trying to add something to my web site, where a person can upload a file and i receive it through the email. how can i do that?

Hitman,

Client-side (HTML):
Use an input tag with type="file:".
Use something like <input name="myFileUpload" type="file"> for a field with "Browse..." button, by which the user will select the file to be uploaded.

Server-side (eg. PHP):
You need a script to receive the uploaded file and to generate/send an email.

Please note: There are security issues with file uploads. You will need to check/sanitise uploaded files to ensure they are not damaging to the application/server. I am not an expert here - suggest you do some research.

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.