JavaScript, PHP, CGI...? Would help if we knew what language you wanted it in.