I have two types of users, created in my database a user table for email (=username), password and category and two tables where I save the user specific data. I thought about how to do the registration and first thought I could do it with a link like http://example.com/registerA or http://example.com/registerB and then have the value for the category in my form like
but since I don’t know how to do the link and then just get A or B from the URL without having to write two different register.php I thought I could let the user do it during registration with a radiolist. That should look like
my Problem now is that I do get two radiobuttons named LabelA and LabelB. In my table I have the field category as type enum(‘a’,‘b’). When I select LabelA, nothing is written to my field, when I select LabelB ‘a’ is written to the category field and when I make three radiobuttons(’’,‘LabelA’,‘LabelB’) I get a when choosing LabelA and b when choosing LabelB. But I only want to have two radiobuttons - what is wrong here?