[PHP] Re: combo box validation

2010-06-09 Thread Pete Ford
On 07/06/10 18:49, David Mehler wrote: Hello, I've got a form with two combo boxes, one for the month one for the day. Both are required. I've got code that checks the post submission to ensure neither is empty. My problem is that if a user does not select anything in the combo boxes January firs

[PHP] Re: combo box

2003-12-02 Thread Seung Hwan Kang
If I were you, I do this way. // in your HTML form. Husband ... // DB then insert 1, 2, 3, 4. //it will be one of them from flag variable. // when you retrieve it... if (flag == 1) echo "Husband" if ... and so on. :) Kang Chan Hweefarn Saputra wrote: hi :) i am creating a webpage.