Need help with some logic in my sketch.

When I push the submit button on the Arduino's webpage the only thing that shows is the 192.168.1.225/?LED0, 1 or 2

Do you have an example of what you're talking about? Like I said the original code works but I only partially understand it. I've tried googling other examples and found some that seem to work but no source code to reference.

You said counting isn't the best way to go about doing this. What would you suggest?