On Friday 27 April 2001 14:15, Tom Beidler wrote:
> I have the following code that doesn't seem to "explode." I'm trying to
> make a field that looks like 21,23,25,27 or small,medium,large,x-large
> into a pulldown menu with the individual item broken out.
>
> if (($size != "") && ($size != "n/a")) {
>    $sizearry = explode(",", $size);
>    while (list($key,$value) = each($sizearry)) {
>    $size_option_block .= "<option value=\"$value\">$size</option>\n";

Why are yo using $size (the unexploded string) in the last line?

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Error 032: Recursion error - see error 032

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to