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, $strv
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 "
a
b
...
zz
$value
" ;
And I don't care if it could have 2 same value in the select case...
And if there aren't many
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...
for ( $i = 0; $qual_array[$i]; $i++ ) {
if ( $_POST['qual'] == $qual_array[$i] ) {
echo ( "" .
$qual_array[$i] . "\n" );
} else {
echo ( "" . $qual_arr
3 matches
Mail list logo