We report on the absorption of a 100nm thick hydrogenated amorphous silicon layer patterned as a planar photonic crystal (PPC), using laser holography and reactive ion etching. Compared to an unpatterned layer, electromagnetic simulation and optical measurements both show a 50% increase of the absorption over the 0.38-0.75micron spectral range, in the case of a one-dimensional PPC. Such absorbing photonic crystals, combined with transparent and conductive layers, may be at the basis of new photovoltaic solar cells.