Codice PHP:
function getFormDir(form){
    if(!
form){return;}
    var 
tmpform.action.split('/');
    
tmp.pop();
    return 
tmp.join('/').concat('/');

Perchè ottengo:
Warning: function getFormAction does not always return






PS.

Se avete per le mani qc di meglio