Use a variable with submit button
Hello everybody,
I want to create a form which opens, depending which option is selected a new window with a variable which has been typed into a text field before:
departure from:
<input type='text' name='from' />
- transportation:
- <select id='item_select' name='item'>
- <option value='1'>car</option>
- <option value='2'>train</option>
- </select>
- open route in new window:
- <input type='checkbox' name='checkbock' value='checked' />
How can I either open onlick the submit button a new window with the variable "from" in the link (if the option "open in new window" is selected) or just send the form normaly if the option is not selected?
Thanks for every help!
Scott