[PHP] checkboxes and selection lists

2002-11-04 Thread marco_bleeker
Hi, as a beginner I find the way you declare variables through HTML-forms quite straightforward. But the reverse, to put the same variables back into a form field is not so obvious for selection lists and checkboxes. Would for instance this be the best way: SELECT CLASS=select

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
PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 5:06 PM Subject: [PHP] checkboxes and selection lists Hi, as a beginner I find the way you declare variables through HTML-forms quite straightforward. But the reverse, to put the same variables back into a form field is not so obvious

RE: [PHP] checkboxes and selection lists

2002-11-04 Thread Brendon G
$strtemp; } - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 5:06 PM Subject: [PHP] checkboxes and selection lists Hi, as a beginner I find the way you declare variables through HTML-forms quite straightforward. But the reverse, to put