Welcome Guest, Not a member yet? Register   Sign In
Form validation and SELECTs
#2

[eluser]Watermark Studios[/eluser]
It seems to me that your object $this_food is not retaining the changes due to the validation error. I would create a trigger that maintains the state of the selected option despite validation. In other words, create another variable that holds the value you want it to hold instead of asking the invalid object to hold that value.

As a note, you can use SELECTED, SELECTED = "TRUE", SELECTED = "SELECTED. Any one of those attributes will have the same results. If I remember correctly, assigning anything to SELECTED makes it valid. "When set, this boolean attribute specifies that this option is pre-selected." - from www.w3.org

Thanks,

Ken


Messages In This Thread
Form validation and SELECTs - by El Forum - 10-19-2010, 02:05 AM
Form validation and SELECTs - by El Forum - 10-19-2010, 03:52 AM
Form validation and SELECTs - by El Forum - 10-19-2010, 03:17 PM
Form validation and SELECTs - by El Forum - 10-19-2010, 03:48 PM
Form validation and SELECTs - by El Forum - 10-19-2010, 04:01 PM
Form validation and SELECTs - by El Forum - 10-19-2010, 07:43 PM
Form validation and SELECTs - by El Forum - 10-19-2010, 07:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB