vedi la guida:

http://php.html.it/guide/leggi/99/guida-php-di-base/
http://php.html.it/guide/lezione/266...li-get-e-post/