The best would be to get a molex connector from an old PSU, and solder it. Make sure you get some heat-shrink tubing, and shrink it around the connections, that way you're sure it won't touch any other vital parts of the mainboard. Duct tape will work too, but it looks kind of unproffessional

You will need a HD molex. You can get the connector to the mainboard and the floppy from the original cable. If you want i'll post some pics how i did it.