PDA

View Full Version : how to attach files with a browse button



khlota
02-06-2007, 06:16 PM
Hi -

I am new to this forum, I am a designer with not a lot of knowledge in the coding area. I have a form I set up that works outsid of one button. I need to know how to use a 'browse' button to attach files to send via this form. Also,m will it matter what type of files they are?

Here is the page I am speaking off so you can see it. Any help you could offer would be GREATLY appreciated.

http://www.altechmachine.com/test/inquiry.html

Thanks

Twey
02-06-2007, 06:38 PM
This isn't a Javascript question.
<form enctype="multipart/form-data" action="handler.php" method="post">
<input type="file" name="userfile">
<input type="submit" value="Upload">
</form>You'll then need some form of server-side script to handle the file(s). The format doesn't matter.

khlota
02-06-2007, 08:53 PM
Sorry, that just shows you that I know little about scripts. Thanks for your advice, I do very much appreicate you giving me something to go on.:)