I changed my tact completely on this, as I struggled to get it working firing the data to a different server as javascript doesn't like posting between domains.
I altered the index.php file that resides in the captiveportal folder (using the package 'filemanager' is ideal).
I then use PHP to recieve the form fields, turn them into a line of data "timestamp|name given|email given|postcode given|ip address"; (something like that). This is then appended/written to a file, one entry per line, a new file being created each day. The file is available to view via a web browser (see screen shot).
The green 0's shows there has been no warnings given for dodgy details.
If I click the 0, that mac address is added to an associative array and that user booted off the captive portal. They then have to fill in the form again, but a red warning appears on the form too. The green 0 then becomes a red 1. If they log back in, the red 1 turns blue. You can then click this again to ban once more, you then get a red 2 which turns to blue when they log back in. 3 warnings and the warning message they then see is titled "LAST WARNING". If they get warned once again, they are banned for three days (they just recieve a page explaining why they have been banned when they try to login.
Sounds complicated, but it works really well.
If I knew anything about creating packages, I would consider it. I would like to integrate the log viewer into the pfsense template, at the moment it is accessed seperately via http://pfsenseIP/wifilogs/wifilogs.php (with a php sessions password).
This can be used in conjunction with the Squid Proxy and Sarg Reports to see what websites were accessed by the users.
untitled.PNG
untitled.PNG_thumb