Jmarc,

Thanks for the reply. Yes, I didn't catch it because I was alerting the div var, but it came out as a string. Somehow, I thought I could include a string as part of a procedure... Wrong!

I'll have to look into eval() a bit more, but you're right - the obvious thing to do here is to do it right the first time.

What I'm finding is that in development, you really have to be fluent in 3 languages - php / SQL / javascript. Add in CSS notation and you've got a 4th, but CSS really makes things easier, not harder - anything not to have to go back to nested tables...

I've started messing around with the YUI connection manager for the AJAX requests thanks to your suggestion. There are so many out there, it's hard to say which one, but it's all about the same.

Chas