Update forms.rst

Accessing form values via `vars` property instead of getter. Updated PHP templating examples.
Update forms.rst

Accessing form values via `vars` property instead of getter. Updated PHP templating examples.
merge
Fixed vars as object property, not array
Merge pull request #3409 from kuusas/patch-1

Update forms.rst