?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


?
?Re: php multi dropdown list
Author:??(---.ym.rnc.net.cable.rogers.com)
Date:???02-19-04 15:57

to keep you values alive, place each in a variable when submitting and then set them as selected when rebuilding the form

here is the code to keep them alive

$items can be an array or a database call dataset
$item is the item choosen by the last go around - this is for one item....to use this for a list of items either change the name for each item or use an array


$num_elements=count($items);

for($x=0;$x<$num_elements;$x++){
if ($myItem==$items[$x]){
echo "";
}else{
echo "";
}//close if then
}//close for loop

?Topics Author? Date
?php multi dropdown list??new
Vincent 02-18-04 21:04?
?Re: php multi dropdown list??new
bastien 02-19-04 15:57?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
????

Provided By
Phorum