I found this good tutorial on creating a login/register system using PhP and MySQL. The forum is around 5 years old (edited last year) but it can still be usefull.
Begin
Did you echo the $_REQUEST data and checked if they are being grabbed correctly?