secretsquirrel
Programmer
hi,
i've got a URL with parameters in a hidden field which looks something like...
/cgi-bin/blahblah/page.w?param1=1¶m2=2
i need to chop off the first part of the URL, so i'm left with
?param1=1¶m2=2
can anyone recommend a way to do this, please?
previously i've had to do this with a URL in the address bar and it works using
document.location.search.split("w");
but if i do something similar with my hidden field it seems to replace all the 'w's in the string with a comma instead!
thanks in advance,
ss...
i've got a URL with parameters in a hidden field which looks something like...
/cgi-bin/blahblah/page.w?param1=1¶m2=2
i need to chop off the first part of the URL, so i'm left with
?param1=1¶m2=2
can anyone recommend a way to do this, please?
previously i've had to do this with a URL in the address bar and it works using
document.location.search.split("w");
but if i do something similar with my hidden field it seems to replace all the 'w's in the string with a comma instead!
thanks in advance,
ss...