use this $_SERVER['HTTP_REFERER'] this may help you. On Nov 2, 2007 9:50 AM, Sudhakar <finals27@xxxxxxxxx> wrote: > > > > > > > Hi > > I have a common form page where a user submits an enquiry > ex: enquiry.html > > This enquiry.html will call a php file called processing.php in the > form action for processing the enquiry and inserting into database. > > There are many ways a user can reach enquiry.html for example from > aboutus.html contactus.html etc > > My question is how can the processing.php file track which was the > previous page a user was browsing before viewing and submitting an > enquiry from enquiry.html > > This would help me to keep track of the source of enquiry.html > > Any help will be greatly appreciated. > > -- Regards Gautam