Community discussions

MikroTik App
 
operatortt
just joined
Topic Author
Posts: 16
Joined: Wed Jul 08, 2009 12:12 pm
Location: Antalya

send authorized username in php form

Mon Aug 13, 2012 3:35 pm

Hello All
I am using RB493AH (v.5.14) in a hotel and I use usermanager for batch user generation according to user profiles and I print out them...Reception sells them .

I want to write a form script that guests can fill out their details so there will be a email DB....etc.
I will advertise this 1 time after login so users can fill them.
I have fields that asking for name surname country roomnumber and email address.I can write these to Mysql DB.
I also want to send username and macaddress background.(maybe as hidden)
is it possible to send autharized username in background.?(I think mac address is easy)
Thanks for ur interest...
PS.Sorry for bad English...
 
SubZero
just joined
Posts: 7
Joined: Wed Aug 15, 2012 1:44 am

Re: send authorized username in php form

Wed Aug 15, 2012 1:46 am

just use google document form man :)

this is very easy 8)
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: send authorized username in php form

Thu Aug 16, 2012 7:47 pm

If the router is in the same subnet as the web server, you can use the API with something like this MAC finder to get the MAC address of the client. Of course, instead of writing it out on screen, you'd write it into a hidden form field. If the users already have their hotspot credentials and are logged in, you can capture those in a similar fashion. If not, you could register them at that point.

@SubZero
just use google document form man :)
Could you elaborate on that please?
 
SubZero
just joined
Posts: 7
Joined: Wed Aug 15, 2012 1:44 am

Re: send authorized username in php form

Fri Aug 17, 2012 3:53 am

@SubZero
just use google document form man :)
Could you elaborate on that please?
i make a form with Google Docs (https://docs.google.com)
whit name fields, mob num, and more info..

and i add the form code in a hotspot page

Have you got the idea?