PHP form elements; attachment button to attach to result email
Copy link to clipboard
Copied
I have built a form in PHP that uses simple serverside strings from one page to the next, and submits the form results via e-mail. I have accomplished this portion of the form, and it works; however, I am now adding to this form to create a bid sumbission form that functions the same way. Although, in this new bid request form, I want to add a button that allows the user to browse their system files and upload a file that will attach to the result e-mail. I have the button, but cannot figure out how to setup the results page that puts the file attachment on the email to me.
I have used all the tutorials I can find, been through the FAQ's here, and even searched the site for other like questions. So far, I have had no luck- Maybe I am not understanding the process and would appreciate it if someone could walk me through this step-by-step. The code for the form is attached so that you see how it works (both pages).
Message was edited by: WaltMoser
Copy link to clipboard
Copied
The PHP mail() function does not support file attachments. I suggest that you do a Google search for "send attachment by php mail". You'll find a lot of tutorial links.
Copy link to clipboard
Copied
I didn't know that PHP mail() doesn't support attachments.
Thank you, I will do some more research in this area.

