You need to use a server-side technology to achieve this I'm afraid.