Update processresult.php

made a lot of changes, should be in email