Greeter

Example 1: Greet a pre-defined person

These buttons pass a static 'userName' parameter in their data attributes.

Example 2: Greet a custom name from an input

This form sends the value from the text field as the 'userName' parameter.

Example 3: Say Goodbye (using a Class Method)

This button's handler string points to a method inside a PHP class.