Re: next,key,current question
| From: | Marek Kilimajer | Date: | Fri, 14 Nov 2003 10:43:06 +0000 |
| Subject: | Re: next,key,current question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169630@lists.php.net to get a copy of this message | ||
Sara Daugherty wrote:
I am having trouble with creating a list box. I am attaching the code. I am not sure the code in the for loop close to the end of the program is correct. If someone could take a look at it I would appreciate it. Thanks, SaraI like to use foreach: foreach($Classes as $ClassesKey => $ClassesValue) { echo "<option value='$ClassesKey'>$ClassesValue</option>"; }