son Posted October 7, 2009 Share Posted October 7, 2009 I am looping through various items to display them all in table rows. For each of those I have a drop down to select an option for a finish. I wanted to make those sticky when the form has been submitted with:if((isset($_POST['ageing'])) && ($_POST['ageing'] == $ageing_id)){ echo ' selected="selected" '; }but found that this will set them all to the same value. Each one is independent from each other. How do you make those drop-downs individually sticky?Son Link to comment Share on other sites More sharing options...
justsomeguy Posted October 7, 2009 Share Posted October 7, 2009 Did you give them all the same name? Link to comment Share on other sites More sharing options...
son Posted October 7, 2009 Author Share Posted October 7, 2009 Did you give them all the same name?All select are called 'ageing'... Thinking about it: This is probably not a good idea, is it?Son Link to comment Share on other sites More sharing options...
justsomeguy Posted October 7, 2009 Share Posted October 7, 2009 No, that's not a good idea. It will only submit one value with that name. You can either create an array of them, or just give each a different name. Link to comment Share on other sites More sharing options...
son Posted October 7, 2009 Author Share Posted October 7, 2009 No, that's not a good idea. It will only submit one value with that name. You can either create an array of them, or just give each a different name.Will try it with different names then...Many thanks,Son Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.