Possible Duplicate:
How to prevent submitting the HTML form’s input field value if it empty
If I have a three piece input form and a submit button.
Form 1 id: book
Form 2 id: music
Form 3 id: tv
Say I put "Book1" in the book field, "Music1" in the music field and nothing in the TV field, I would get this URL:
http://url/search/?book=Book1&music=Music1&tv=
What happens is that even though there is nothing in the "tv" field, "&tv=" still gets appended to the URL. Is there any way to stop this, or is this standard browser behavior?