Read up on "damping off"

It's a fungal disease that affects seedlings... causes the stem to become very weak and the plant falls over.

As for the heat..If it's outdoors there's not much you can do to control the temperature.