Prova cosi:
onsubmit="if(this.form.input.value!=0) location.href='http://www.miosito.it/search/'+this.form.input.value"