What I'm trying to do is to insert users into a table with a randomised password (works fine till here) and on successful submission of the form I want to send email to the registered user their password. This is what I've got so far: What I'm trying to do is to insert users into a