a basic php API for retrieving form data.