Hi,
I have a php script which outputs some javascript to include within a html document.
One of the javascript outputs is an array like this which is taken from a database:
arrayleaTXT[1] = "Cambridgeshire|Norfolk|Peterborough|Suffolk";
My script works fine until I put more information into the database and the array becomes significantly longer. Then the script runs ok but the html page output doesn't work. The reason it doesn't work is the array is so big it (somehow) wraps around and includes a carriage return which javascript seems to take exception to.
Is there anyway around this problem?
Thanks in advance