Hi, Many a times, a value is being assign to the options in the pull down menu. How does one knows what value it has to be assigned to. Is there a reason for a value to be assigned? E.g. <option value="TGIF"> Friday</option>
I use a value when I'm filling the options in dynamically from the database and use the ID as the value.
ok that means the value is the ID. ID in database is 'TIGF', therefore it is used as a value in the options.
Well, that's what I use it for. But if it's a dynamic website then it's more then likely that TIGF coressponds to some item in a database.
i am trying to understand if the 'TGIF' value is already in the database and we need to find that out first before we use the value in the options OR is it that We just assign any value as we like it and it will imprint into the database consequently.
Well, if it's a dynamic site then it's pretty much guaranteed that TGIF is somewhere in the database and that it corresponds to something. But it's hard to say without seeing the database schema
If it is not a dynamic website, i can add in any value terms i want. It seems like many profitable sites are dynamic.