51Degrees Geo-Location PHP  4.4

51Degrees Geo-Location for 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.