On clicking a button on a web page, can a dynamic link be generated? can we navigate webpage to the dynamically generated link
<p>I am new to PHP and javascript programming 
I have a string that can be "abc" or "aac" or "aaa" etc based on the inputs given by the user.  After the user clicks some button(say submit) I want to generate a dynamic link like www.domain.com/abc or www.domain.com/aac based on string and navigate the user to the generated link. Is this possible? 
Thank You</p>
