The code below, simplified from others on the Web to handle a single language pair, sends the current web page to Google for translation - and it works. However what I'm trying to do is to modify it so that it sends the URL of another page to Google instead (always the same different page - no user interaction required).
Unfortunately, while I can write a little php, I've really not much idea about what's going on here, and, after over an hour of puzzling, am not much closer to understanding what to change. If anyone is able to assist I'd be very greatful. The code so far is:
I should, perhaps, explain that I was originally using an ordinary html link to sending a URL to Google with the language pair for translation - very simple and effective. Unfortunately Google seem to have blocked this, and the above JavaScript method seems to be the best alternative - if only it can be persuaded to do what I need...
I hope that explains things?