Back when my son was at that age (he's now 15) I had a friend give me this suggestion and it worked wonderfully!
She told me that when her son was little he'd sleep so heavily he'd wet the bed. So she got in the habit of waking him at midnight every night (set her alarm to wake herself) and leading him into the bathroom. It got to be such a habit that after a while he started automatically waking up on his own. One night she heard him in there and she hadn't even gotten up to wake him yet. He looked as though he was sleep walking but did a wonderful job of getting there and back with no problems. She never had problems with him wetting the bed after that. It was an inconvenience for her, but it wasn't very long, maybe a couple weeks, and he was already in the habit himself.
Being that I used to get home at about midnight from working the night shift at Thriftys drug and discount store, it was easy for me to started doing this with my son. I would come home from work, go in and wake him gently and tell him to go try to use the bathroom. He did and I don't even remember how many times we did it before it became a habit. He never wet his bed, ever. Now crapping his pants was another thing.
Being he's a boy (I hear it's common) he was always too lazy to stop playing long enough to go. And to this day is still having bouts of diahreah and staining underwear, but as he's gotten older he's slowed down and started taking more time in there. (diahreah can also be caused by back-up problems, the stool becomes so hard that the looser stuff has to squeeze by the blockage and will come unexpectedly so the boy thinks it's gas and it runs out, yuck!) I have to remind him now and again that he needs to slow down. Always in a hurry to rush back to his video games or online chatting, he'll rush through and ruin his undies by waiting too long to go, or not wiping good.
As soon as he starts making his own money, which started last weekend when he got a work permit to go to work with his dad on the weekends, he will start paying for his own underwear and that should be an incentive for him to pay more attention! Plus girls help, he likes to smell good for them. I always knew that would eventually help.
So good luck with the toilet training during the night. It really worked for me! I am forever in my friend's debt for this.
My daughter, never had a problem with either. BUT she would not take enough time in the bathroom either and she developed another problem. She got so backed up she had stomach problems. She started missing too much school over it , I mean crying and in pain. So I took her to a specialist and he gave her perscription strength medicine to thin her stools, and told her that she needs to start taking more time in the bathroom, to concentrate on pushing and getting her muscles working again, they were starting to weaken from not being used. He told her not to be afraid of the pain, that sometimes it will hurt, but it will stop. He could feel the backup in her intestines when she laid down on his table. It was that bad! She got better over about a month, and since then has only had one rebound with it. He warned us that it could happen again, so to nip it in the bud if she starts to get sick from it again. If we go camping or to visit relatives make sure she drinks a lot of water and uses the bathroom still, taking her time.
Now she knows, if she starts to feel icky again to take more time in teh bathroom, to push more and keep those muscles working because they can actually stop working if she doesn't use them enough, making her even more seriously ill.
I never even thought I'd have to teach my kids proper bathroom edicate, I always thought it just came naturally. I never had problems with this that I remember. But I guess kids who like to play a lot of video games can get in the bad habit of holding it in too long. I didn't have video games as a kid, so ... there you go. Keep them active and make sure they slow down once in the bathroom. No quick moves, hahah.
Hope this helps! :)