Olá Luiz, existe alguma opção para passar variável no link do menu? Tipo o exemplo abaixo:
No menu:
$menu->add(21,2,'Trocar a Senha','portal/portal.php?opt=1',null,'print16.gif');
$menu->add(22,2,'Ler Mensagens','portal/portal.php?opt=2',null,'print16.gif');
$menu->add(23,2,'Solicitar Suporte','portal/portal.php?opt=3',null,'print16.gif');
e no arquivo portal.php, faria:
switch($_POST['opt']){
case 1:
$message ="Caso 1";
$frm = new TForm('Form',200,400);
$frm->hideCloseButton();
$frm->addHtmlField('html_aviso',$message,null,null,'center');
$frm->show();
break;
case 1:
$message ="Caso 2";
$frm = new TForm('Form',200,400);
$frm->hideCloseButton();
$frm->addHtmlField('html_aviso',$message,null,null,'center');
$frm->show();
break;
case 1:
$message ="Caso 3";
$frm = new TForm('Form',200,400);
$frm->hideCloseButton();
$frm->addHtmlField('html_aviso',$message,null,null,'center');
$frm->show();
break;
}
Minha dificuldade está em passar o parametro a partir do menu. Será possível ou estou procurando chifre na cabeça de cavalo?
Autor: Jair de Jesus
33 comentários
case '1': .... Abraço.