Ti suggerisco di iniziare dalle basi del PHP:

http://www.php.net/manual/en/tutorial.forms.php