thanks alot Hammerhead;
you saved my life only with one statement
'There shouldn't be any HTML in this particular PHP script'
i kept every thing correct but still problem was there; so after removing those htmls from my php file the thing got worked; it took me three days down the road...