Okay, it's uploaded fine now. I think the problem is that the entire code is echoed inside the span element. As far as I know only inline elements can be placed inside other inline elements in HTML, so that's probably the problem. The search code contains divs, images, forms and those elements are invalid inside a span.
Try to change the span to a div and it should work properly then. You might as well need to change or add a few lines to your CSS to get the positioning right.Best,
If you like my products, don't forget to rate them on codecanyon :)