James, >Hi Dan I found your code examples just after posting the last message and >then just used your php file as an example to copy from. I added the 31348 >towns to the file and it is about 694 KB but seems to run ok. >so should be able to stay with that. I just now have to work on the style >sheet to make it return the results in some nice colours.
You shouldn't be embedding all those towns in a static format. They should be stored in the database and you should be querying against them. Storing all that data in a static format is going to be a maintenance nightmare. I'm also hoping you're not trying to return the entire 694KB on every request. You should only be returning items that match your subset of data. -Dan