We present neutron-scattering measurements of the static structure factor, S(Q), of helium confined in the porous media MCM-41 of pore diameter 47 +/- 1.5 angstrom. The S(Q) shows a transition from the liquid to an amorphous solid as temperature is decreased. No Bragg peaks are observed in the solid and the S(Q) of the amorphous solid differs little from that of the liquid. On freezing, a small additional intensity in S(Q) near the main peak of the liquid S(Q) is observed. The S(Q) is compared with simulations of freezing and melting in porous media. From the measurements of freezing, an approximate phase diagram is determined. A similar amorphous S(Q) is observed in 34 angstrom gelsil.