Re: inserting dynamic drop down menu data into mysql

From: Date: Wed, 07 Jan 2004 16:21:03 +0000
Subject: Re: inserting dynamic drop down menu data into mysql
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32316@lists.php.net to get a copy of this message
From: "Duane Barnes" <dbarnes@power1.com> > $output .= "<option value=$category>$category</option>"; Put quotes around your values... If you have <option value=This and That>This and That</option> how do you expect HTML to know you mean "This and That" as you're entire value? It's not. It's going to take "This" and ignore the rest as unrecognized attributes of the <option> element. ---John Holmes...

« previous php.db (#32316) next »