PHP header(), location & refresh

by Neerav Bhatt on April 13, 2005 · 1 comment in Topic: Webdev & SEO

Steven Clark has written a useful little article about using PHP’s header() function to redirect users after form submissions etc which I have just implemented on my Contact form

Excerpt: One of the most important things to understand is the HTTP protocol even if its only on a basic level. Its a stateless protocol meaning it has no memory once it leaves the page, and HTTP works by sending requests and responses to and from the server for content. These HTTP transactions therefore contain request and response headers. PHP scripts can send HTTP response headers using the header() function…

Read more of Steven’s article about PHP�s Location and Refresh

1 comment



click here

{ 1 comment… read it below or add one }

1 Brian February 8, 2009 at 9:44 am

Great piece from Steven. Always make sure to check your headers using mozila live headers plugin or you can use something like http://www.httpviewer.net

Leave a Comment

Previous post:

Next post: