ok, I can do it with javascript .
Is that client side? I prefer not to run any scripts
I understand.... I would be a 5 line script. Pure js, no jqueryor any other extension. . I dont know to do with php
I can do with pure js. Do you want?
Something very simple , 100% compatible with any browser.
var number = getDocumentById("input")
var folder = ////slice number
Then some function calling https//...../folder/number
Something like that...