The registration script is not made by myself, it has various functions, it's not a simple sql insert. It's possible to include the registration page and call the register function, but I think the script expects values in the $_POST variables.