PDA

View Full Version : Browse / Email



ramkan
02-20-2006, 06:33 PM
how do i set a option of 'BROWSE', so people can select a file?

how do i set script which when selecting a button, it gets sent to a email address.

for example: on a web page, when the person has selected there chosen file, and then clicked on sent, it will get sent straight to a email address.

thanks

Twey
02-20-2006, 06:56 PM
The former is accomplished with a file input:

<input type="file" />
The latter is slightly more difficult; you'll need to use a form of server-side scripting. See here (http://www.php.net/features.file-upload) for one possible solution.

ramkan
02-21-2006, 03:39 PM
where do i put this code?

thanks

Twey
02-21-2006, 05:27 PM
The input element needs to go inside a form. If you don't know how to use PHP, or if you don't even know if you have PHP, see php.net and read the tutorials.