Page 1 of 1

createinputdropbox and ampersant

Posted: Mon Mar 05, 2012 7:57 pm
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