if I choose video menu. the echo will return mp4
any suggestion to fix this please?
Code: Select all
$menu = <<<MENU
Video;*.mp4;*.avi
Audio;*.mp3;*.wav
MENU;
$s = popupmenu("$menu");if !($s) { end 1==1; };
echo $s
Code: Select all
$menu = <<<MENU
Video;*.mp4;*.avi
Audio;*.mp3;*.wav
MENU;
$s = popupmenu("$menu");if !($s) { end 1==1; };
echo $s
you are right. I guess quoting "*.mp4;*.avi" will make it workPeterH wrote:In the expression Video;*.mp4;*.avi ";" is the separator "sep_item", so:
Video = caption
*.mp4 = data
*.avi = icon
You didn't mean it this way, I think.
Code: Select all
$menu = <<<MENU
Video|*.mp4;*.avi
Audio|*.mp3;*.wav
MENU;
$s = popupmenu($menu, 7:="|");
if !($s) { end true; };
echo $s;