Create a form Dynamically

Just by defining list of field you need in the form eg: firstname, lastname, othernames, address...