Send user to dynamic url based on his imput

Hello,
Thanks for reading!
How can I create a button that will send user to custom link based on his imput on a placeholder?
For example, if he types 123 on the placeholder, when he clicks the button will be sent to www.google .com/123 ?
Thnaks all!