Re: [PHP] checkboxes and selection lists

2002-11-04 Thread John Nichel
For something like this, instead of doing all the HTML, I would set up and array, and then loop through the array to output the HTML... SELECT CLASS=select NAME=qual ?php for ( $i = 0; $qual_array[$i]; $i++ ) { if ( $_POST['qual'] == $qual_array[$i] ) { echo ( OPTION VALUE=\ .

Re: [PHP] checkboxes and selection lists

2002-11-04 Thread rija
If you have hundred thousand elements for example if you rob up for some country select within tierce code- I thinks doing like the following is better echo select optiona optionb ... optionzz option selected$value /option /select ; And I don't care if it could have 2 same

RE: [PHP] checkboxes and selection lists

2002-11-04 Thread Brendon G
I use the following function for my check boxes in forms in PHP. Putting your form element creation into functions or even classes makes life so much easier when you have to validate / change code. you'll be glad you did it Cheers Brendon function fncwriteformcheckbox($strname, $strid,