thnax for the replay
but my main concern is i don't know the exact url, the whole concept is i have many pages with many forms in them and when ever any user submits the form i validate the inputs and if there are any error in the input i need to send him back to that page, without making him click the back button. so how do i do this?
i think i cannot use header() here as there is a lot of data already outputed.
even if i did this some how i need to maintain the same input what the user has made so that he needs to make only the correction on errors he made during the first submit.
hope i expressed my self correctly.
thanx for the replay though