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
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=\ .
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
$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
4 matches
Mail list logo