Jump to content

Mixed forms


adam.sitingduck
 Share

Recommended Posts

I want to make a form in which I have normal text input fields as well as a file upload on the same form.I know I need to make the enctype="multipart/form-data" to make file upload work but will I be able to have text input fields on the same form? When the form is submitted I want the data in the text fields to form the body of an email and then have the files become attachments.One solution I can think of is to make it a three-step process step one have a form where the user inputs the text fields. Step two the data collected gets stored in $_SESSION values and the file upload form is displayed. Step three all collected data is displayed for review and then when submitted is sent as an email.If possible I would like to have it on the same form thoughThanks :)

Link to comment
Share on other sites

you can make it in one form also..from the form you will get the text and as well as file. then you can process those to use in any case (in your case mailing). i am not sure what problem is there...did you try anything?..what problem are you facing?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...