In a form, I have a field called mode of transport: for that I used three radio buttons like own , private and public.
If he clicks public radio button, it should show two radio buttons like pickup and drop. Otherwise it should not show it(pickup and drop). I don`t know how to do? can anyone tell it with simple example

Member Avatar for diafol

You can attach a click event to the radiobuttons to show/hide the pickup/drop radios. This will be done in javascript, so nothing to do with PHP, even if you create the form via PHP. Moving to JS forum...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.