Menu
Good day to you all,
in the following line, .basename($newpath2);. is not acting correctly it should, take $newpath2 and extract the basename, no extension, and input the result in the javascript by replacing .basename($newpath2);.
This is one wayI have done it .
[code=php]
echo ‘<OPTION onClick=”blocking(‘.basename($newpath2);.’);” return true;”>’.substr($newpath, 7).'</option>’;
here is another way I have tried
[code=php]
echo ‘<OPTION onClick=”blocking(‘<?php echo basename($newpath2);?>’);” return true;”>’.substr($newpath, 7).'</option>’;
Do somebody would know what i’m doing wrong ?
Thanks !