> > Put some quotes around the tag value for just in case the $aviao has a
space
> > in it:
> >              $drop_down_list .=
"<optionvalue=\"$aviao\">$aviao</option>";
>
> what about if $aviao contains a double quote?
> what's the proper way to handle that case?
> or, in other words, what's the most general way to solve this problem?

Use double quotes around the value (like suggested) and run htmlentities()
on it before hand.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to