php-general | 2003022
Date: 02/24/03
- Next message: Pushpinder Singh Garcha: "[PHP] File Trouble"
- Previous message: Richard Kurth: "[PHP] array question"
- In reply to: Michael Cook: "Re: [PHP] What is wrong with this?"
- Next in thread: Tim: "RE: [PHP] What is wrong with this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > 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
- Next message: Pushpinder Singh Garcha: "[PHP] File Trouble"
- Previous message: Richard Kurth: "[PHP] array question"
- In reply to: Michael Cook: "Re: [PHP] What is wrong with this?"
- Next in thread: Tim: "RE: [PHP] What is wrong with this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

