Please advise the code
Forum Charer [webmasterworld.com]
Forum Etiquette:
It is not appropriate to expect other members to write your code for you or to debug your entire project; Please don't expect other members to solve a problem you don't want to begin solving yourself.
Before posting a new thread, please try looking through the older posts in the forum index. Someone may have recently asked the same question, and you may benefit from the posted answers. Using the WebmasterWorld search function or the site-specific search feature of major search engines may help you find exactly what you are looking for on WebmasterWorld.
"Fix my code" and "Do my homework for me" threads:
This is a discussion forum, not a help desk or a free code-writing service; If you have a problem, please try to research it and then phrase your post in a manner conducive to general discussion of the issue. Rather than providing one-off solutions, we prefer to help people find resources to help themselves.
A general guideline for code-related problems is: Post your own code and describe what you hoped it would accomplish. Then describe how it fails and include all relevant information from your server error logs. Too-general posts in the form of "What code do I use to do this?" often go unanswered for a long time.
The following resources are often referenced in our Apache forum, and may help to answer or focus your questions.
end of quote
Your request is the most common in this forum. 3-4 times weekly. There are literally thousands of examples in the archives.
Please read both the Forum Charter and the Forum Library in their entirety.
There are examples (with links) that provide information.