Jump to content


This topic is now archived and is closed to further replies.



Recommended Posts

my question is simple.. if i put a list value son a html form and i want to get that value into my database do i need to put all the same values in side the ENUM() type?

Share this post

Link to post
Share on other sites
You don't have to do it that way but you can.

Think of it this way...

If you HTML form that could be the ENUM figure is already limited by a drop down box then essentially the form itself is doing the ENUM for you and thus you wouldn't have to put it into the database that way. You could leave it as a VARCHAR. Now if your database is populating the dropdown box then Yes it need to be an ENUM so that it has values to pull from.

Hope that gives you some insite.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.