createinputdropbox and ampersant

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
musicscore
Power Poster
Power Poster
Posts: 444
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

createinputdropbox and ampersant

Post by musicscore »

I create an input dropbox with this code :

Code: Select all

$this->smarty->assign("type_input", $this->CreateInputDropdown($id,"objtype",$tmptype,-1,isset($item)?$item->type:""));
$item->type can be "B&B country".

Be using the & (ampersand) doesn't work.
It then skips to the first entry in the dropdownlist and not to the "B&B country" entry.

Is the a way to use the ampersand here ?

Thanx
Post Reply

Return to “Developers Discussion”