(03-06-2017, 11:34 AM)Paradinight Wrote: Wouter60 made a little misstake
It missing a /
Code:
window.open("<?= site_url('c_tunesheet/index/');?>"+tuneID,'_blank');
When I try . .
Code:
window.open("<?= site_url('c_tunesheet/index/');?>"+tuneID,'_blank');
. . . I still get that [b]Access forbidden![/b] error.
I notice that the url that appears in the browser for that page that opened is now:
[b]http://localhost/CID17/+<?php site_url('c_tunesheet/index/');?>+1632[/b]
Is that possibly because this is inside a .js file and not a .php file?
i.e. The browser seems not to know what to do with the php insert before it executes the window.open().
Damn, for a while I couldn't figure out how to turn on Code formatting. Now I can't shut it off.