In form create custom button call php metods

in a single record form I inserted A label (BUTTON1) personalized with the code in the Event onload:

immagine

I created a function in php “BtnFn()” and I want to call it from the button
where am i wrong?
tks