I have a website where I'm using HTML and PHP together. I'm working on a feature where I want to redirect users to a specific URL based on their selection. So basically, I have a form with several options (let's say options A, B, and C) and when the user submits the form, I want them to be redirected to a different URL depending on the option they selected.
For example, if a user selects option A and submits the form, they should be redirected to "www.example.com/page-a". If they select option B, they should be redirected to "www.example.com/page-b", and so on.
I've been trying to figure out how to achieve this, but I'm struggling with the PHP part. I know how to get the value of the selected option using PHP, but I'm not sure how to use that value to redirect the user to the corresponding URL.
Could someone please guide me on how to implement this functionality? I'd really appreciate any help or suggestions.