Hi,
I've hit a snag with what I thought would be a routine "send this page to a friend" link.
The email itself is sent with php, but the process begins with a javascript window launch that passes the following code to the new window:
var url = url + "?url=" + location.href
Now, my pages have urls that look like this (or at least they vary on this general structure):
The javascript clip above terminates the url after the initial query (?page=photograph), resulting in the following incomplete url being included in the final sent email:
Clicking on each of those will show you the difference.
I'd prefer - if possible - to keep the current system having already spent some hours on design with it, so my preferred solution is to find a way to pass those urls in full - queries, ampersands and all.
Anyone have any idea how I can do this?
Help appreciated...
Gary
I've hit a snag with what I thought would be a routine "send this page to a friend" link.
The email itself is sent with php, but the process begins with a javascript window launch that passes the following code to the new window:
var url = url + "?url=" + location.href
Now, my pages have urls that look like this (or at least they vary on this general structure):
The javascript clip above terminates the url after the initial query (?page=photograph), resulting in the following incomplete url being included in the final sent email:
Clicking on each of those will show you the difference.
I'd prefer - if possible - to keep the current system having already spent some hours on design with it, so my preferred solution is to find a way to pass those urls in full - queries, ampersands and all.
Anyone have any idea how I can do this?
Help appreciated...
Gary