OK I sorted this with the help of Sir Dude (thank you).

For some reason the incorrect content of online.php was up there. Don't know how that happened but I seem to have fixed it.

Thanks