I think the key is to...
Find the right person.
Find the right reasons to get married. Don't tie knot because of a broken heart, or for some other selfish reasons.
Wait for the right time and not just rush into it.
Pray. We make our own decisions, but asking for God's guidance helps.
Lines from Madonna's song, I overheard from my neighbor's radio...
Here is the law of the land
You play with fire and you get burned,
Here is the lesson I've learned
That you don't know what you've got 'til it's gone...