There are various ways to create user accounts through Drupal, but if you need to integrate it with a Webform (required: Webform module), maybe you have also stumbled through http://drupal.org/project/webform_register and to your surpirse, there is no module for download! So here are some helpful lines of code that could get you by that I found from the "Recent issues" page of the said module: