\r\n

51Degrees Device Detection PHP  4.3

Device detection services for 51Degrees Pipeline

CustomFlowElement.php

This example demonstrates the creation of a custom flow element. In this case the FlowElement takes the results of a client side form collecting date of birth, setting this as evidence on a FlowData object to calculate a person's starsign. The FlowElement also serves additional JavaScript which gets a user's geolocation and saves the latitude as a cookie. This latitude is also then passed in to the FlowData to calculate if a person is in the northern or southern hemispheres.