Hallo,
I have build a buttom on the _list page with the visual editor in HTML view.
[codebox]<INPUT class=button title="Test" onclick="window.location.href='cobsconfig_list.php?editid1={$show_key1}&mt_del=yes';" type=button value="Test">[/codebox]
Then in table events / List Page / Before process I put the following custom code
[codebox]if ($_REQUEST["mt_del"]=="yes")
{
global $conn;
$strDel ="delete from cobsconfig where mandant = 'NEU'" ;
db_exec($strDel,$conn);
}
[/codebox]
It works fine - I am enthused.
But now I want to flexible the delete command. When I click the button,
at first I want to ask for the mandant, put the mandant in a variable and then use the variable to delete the according mandant.
Can you help me or can you write me a example?
Thanks a lot!
Michael