I am new to HTML. I need code that generates and redirects to a URL depending on the value of form input elements. For example, with two fields `name` and `roll`, once populated it should generate `http://example.com/name/roll` and send the user to the URL.

Is this possible? I was able to create the URL `http://webaddress/data+data+data` but not with `/`. Please guys; if you may help, it would be very much appreciated. Thanks in advance.