First fully working copy

Updated html form code & php logic