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 Quote 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... Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/40822-selecting-a-file/#findComment-198055 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.