Babu,
> but it doe not work can you pls tell me.
for example you can define 'red' as a css class either in the head of
your document output (within <style> tags) or as an external linked
.css document. 'red' is defined so:
.red {
color:#FF0000;
}
Then your option html is like:
echo "<option class=\"red\">$item</option>";
The advantage of using classes is of course that you can make a change
globally rather than having to rewrite N instances of inline code.
Cheers
CHris
p.s. can you please send plaintext mails to the list, not html ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php