lional Posted March 2, 2007 Share Posted March 2, 2007 Hi All I am trying to do the following: Create a input on a form with the file type. After I select the file I then want to send the filename and its path to a php script and the file is then sent as an attachment. I have the php script but I need to know how do I do the input part Any help will be appreciated Thanks Lional Link to comment https://forums.phpfreaks.com/topic/40822-selecting-a-file/ Share on other sites More sharing options...
ToonMariner Posted March 2, 2007 Share Posted March 2, 2007 The file has to be uploaded first... You cannot attach a file from a users pc directly to an email - otherwise you could attach any file you like and compromise their system... Link to comment https://forums.phpfreaks.com/topic/40822-selecting-a-file/#findComment-197734 Share on other sites More sharing options...
fenway Posted March 2, 2007 Share Posted March 2, 2007 You have to make sure you have the correct enctype for the form. Link to comment https://forums.phpfreaks.com/topic/40822-selecting-a-file/#findComment-198055 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.