Level 8
You can use onchange attribute at the select tag and get value of the selected option
<select onchange="document.location.href = '/your_url/' + this.value">
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a form where users can select different options. When selected option from dropdown is changed, different page should pe shown. I am new in this field. Can anybody tell what is the solution?
Please or to participate in this conversation.