You should check out the "Looking for some help to control spark via web" where I put some code for controlling four channels of pump on a schedule with start and duration--it would give you a big head start in the right direction for your sprinkler HTML!