If i pass a php script a value from a webpage how can i have to return the value ?

I know how to get the incoming data using $_GET or $HTTP_POST_VARS the process or whatever bit don't know how to actually return the reuslts to the page.