instead of copying the code from the page into a text file, it is easier if you just adda copy of the original php file into a ip archive and send a copy of the php file.
I see 2 problems in the code:
1) The upload file server behavior iis on the page after the Update record server behavior. This means the record is updated before the Server File name variable is created by the DFP Upload file server behavior.
The upload file code needs to before the update record code.
2) The hidden form element does not have a value.
Select the hidden form element in design view.
In the property inspector, click the lightning bolt next to initial value and select the UserImage column from the WAATKusers recordset.