# Inputting Multiple Search Fields into Query String?

**URL:** <https://forum.kirupa.com/t/inputting-multiple-search-fields-into-query-string/206502>\
**Category:** Uncategorized\
**Created:** [November 8, 2006, 9:45pm UTC](https://forum.kirupa.com/t/inputting-multiple-search-fields-into-query-string/206502 "2006-11-08T21:45:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atebit](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@atebit](https://forum.kirupa.com/u/atebit)\
**Post date:** [November 8, 2006, 9:45pm UTC](https://forum.kirupa.com/t/inputting-multiple-search-fields-into-query-string/206502/1 "2006-11-08T21:45:41Z")

</div>

hey guys and gals

quick question…i am building a little widget that allows a user to type in keyword(s) into one input field and then a zip code into another

when the user clicks submit, it plugs them into the search url

i have it working for one input field, but i am not sure how to append the script for the second field…what would i need to change to the below script to add a second field into that query string?

```auto
btn.onRelease = function(){
    getURL("http://www.google.com/search?q="+myInputField,"_blank");
}

```

any help is much appreciated…thanks for your time!
