I'm not going to write an entire script for orders, but I will show you how to make a simple authorization form. There are a few ways to do it, the best way is using a database but no need if your site is small. The other way is to use a .htaccess file in apache - here is the PHP-only way...