How to discipline right.

Shana
I have a 6 yr old son with high functioning autism and he is having a problem with going to the toilet. He is peeing on his floor! The bathroom is really close to his room. I have tried to get him to go potty before bed and still he does this. How do I punish him for keeping on doing this?! When I explain to run to the potty, when he really needs to go. He says he understands but the next day he will do it again!