I have been trying to find a way to collect customer email addresses when customers connect to free wifi.
So basically they would connect without having to specify a password and a web page would then open asking them to agree to the terms and conditions and specify their email address. If they have not connected before it wold then proceed to ask for their name and maybe ask them to tick a box to subscribe to a mailing list.
I did wonder about being able to verify the email address but this may be too difficult and I could instead use some Javacript to just check that the email address is correctly formatted or maybe add some code to check that the domain part exists.
After researching which routers should work with I have purchased the Netgear WNR3500L which was supposed to work with DD-WRT but it only works with a mini version as it is the v2 revision so is not compatible. The cut down version does not include a captive portal.
I have now tried the Tomato firmware and whilst I have enabled the captive portal and it does now show some generic terms and conditions which need to be accepted, it seems that the built in web server cannot run php as if I try to upload a .php file from the web interface it tells me it has an invalid extension and that the extension must be a .html. Then if I try to upload a .html file I get a Server 500 error.
I have spent hours trying to get this to work and don't want to waste money purchasing additional routers if what I want to do is not even possible. I am a programmer (although not with this kind of thing) so should be able to follow instructions if someone could point me in the right direction.
I was hoping to just be able to write a PHP web page to collect the email and add it to a database.
Thanks for any help