How would I load an app with a command line of:

-game cstrike +connect 127.0.0.1:_____ +password ____

Where the two blanx are I want customized by the user. Then when they push the submit button it will load the application with the user modified commandline. How would I do that?