I have a form like this
You need to get the value from the input field and populate the xyz value.. Try this
$('#myForm').submit(function() { var value = $('input[type="text"]').val(); this.action = 'http://mysite.com/' + value + '.html'; return true; }