Submissive urination is a normal way for your puppy to demonstrate submissive behavior. Even a dog that is otherwise housetrained may leave dribbles and puddles of urine at your feet when greeting you. Excitement urination with a puppy is usually caused by lack of bladder control. The puppy is not aware that he is urinating; he's just excited and any punishment will only confuse him.
Consistency is crucial. This may mean taking time off work to be there to take the pup outside every 20-30 minutes when they are awake. Crate training will also help the 'penny drop' as it teaches the pup to hold on until taken outside. Then, be sure to stay with the pup in the yard so you are there to reinforce how clever they are when they do go in the right place.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.