I have a drop down list with various options. When the user has selected an option and hit submit the data is stored in a database column relating to that drop down. however one of the options is 'other' and if they user chooses this the drop down list disappears and a two text boxes appear for them to enter the details manually. How do I take this manually entered data and store it in the database when it's coming from two text boxes and going into one column within the database?
Jump to Post
Sounds like you need a conditional statement on your code just before you perform your INSERT/UPDATE SQL statement. If 'other' is selected, then use the value(s) from the text boxes.
All 5 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.