Do not ever attempt to “trap” a man by having his baby. In the history of bad ideas, this ranks in the top 10. A baby will not cement a relationship and in this day and age, it won’t even convince him to do the right thing.
If the relationship is already unstable (or perhaps simply not headed where you want it to go), a child is not going to improve the situation. Children can be a blessing but they aren’t a substitute for a healthy relationship.
Babymommas are a dime a dozen. If the relationship is not on solid footing, having a baby does not make a guy think about marriage, it makes him think of escape. The social stigma of fathering a child out-of-wedlock simply does not exist in most western cultures.
Here’s where the real trap comes in – you trapped yourself. If he doesn’t want the child, you’re going to be the one raising it, supporting it, nurturing it, disciplining it, and if you’re lucky, he’ll pick the child up once or twice a month to play with it for a few hours, feed it junk, and hand it back when it is no longer fun. Unless you really want to be a single mom, don’t go down this road.
Now, accidents do happen and there are good men out there who will care for their child without being in a relationship with their mother. However you should never bet on the fact that baby = security.