The generation of harmonics from the interaction of an intense (I>or=10(18) W cm(-2)) laser with a solid surface is investigated. Modulation of the harmonic emission spectrum with a periodicity of 2 to 4 harmonics is observed at higher laser intensities. A similar modulation is predicted by a particle-in-cell simulation. The modulation is shown to be caused by the higher modes of oscillation of the critical surface during the interaction. As a result, the dynamics of the critical surface can be inferred from the shape of the harmonic spectrum.