Re: What is wrong with this?
| From: | 1LT John W. Holmes | Date: | Mon, 24 Feb 2003 20:32:21 +0000 |
| Subject: | Re: What is wrong with this? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136974@lists.php.net to get a copy of this message | ||
> > 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...