We report an experimental realization of lensless ghost imaging for a phase-only object with pseudo-thermal light, which was proposed by W. Gong and S. Han [Phys. Rev. A 82, 023828 (2010)]. In contrast with conventional ghost imaging, the scheme involves the interference of two correlated fields and the phase information of the object can be retrieved. This imaging technique completes the nonlocally lensless spatial reconstruction of both amplitude and phase distributions in ghost imaging with thermal light.