Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] What is wrong with this? From: 1LT John W. Holmes (holmes072000 <email protected>)
Date: 02/24/03

> > 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