HTML_QuickForm addOptions Value and htmlspecialchars
| From: | led_belly | Date: | Thu, 31 Aug 2006 22:20:09 +0000 |
| Subject: | HTML_QuickForm addOptions Value and htmlspecialchars | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25035@lists.php.net to get a copy of this message | ||
I am currently trying to create a select menu using HTML_Quickform but
addOption seems to be replacing my values with HTML characters. Take for
example the following:
$select->addOption($name, 'ga_merchants.php?op=deals&id=' . $id);
When processed, the markup for the option is as follows:
<option value="ga_merchants.php?op=deals&id=1963">Test Item</option>
I am using javascript to load new content when an option is selected so the
value of the option must be a valid URI (i.e.: I need '&' NOT '&').
Any suggestions?
--
View this message in context: http://www.nabble.com/HTML_QuickForm-addOptions-Value-and-htmlspecialchars-tf2199595.html#a6089394
Sent from the Pear - General forum at Nabble.com.