How to Save Pumpkin and Winter Squash Seeds
Pumpkins and winter squash include several species, notably Cucurbita pepo, C. maxima and C. moschata. Crossing is most likely within a species. Check botanical names when deciding which varieties to isolate.

A banana squash cut across the seed cavity. Photo by Joe, CC BY 2.0.
Choose and harvest
Select healthy, open-pollinated plants with the fruit and storage qualities you value. Let fruits develop their mature skin hardness, colour and stalk characteristics, and cure them as appropriate for the crop.
Clean and store
Remove the seeds, wash away strings and pulp, and discard immature or damaged seeds. Dry thoroughly on a ventilated surface. Label with species, variety and harvest year, and store cool, dry and dark.