NYCPHP Meetup

NYPHP.org

[nycphp-talk] Need page refresh solution after form data processing

Daniel Kushner nyphp at websapp.com
Fri Dec 19 14:11:23 EST 2003


Yep (from w3):
The Location response-header field is used to redirect the recipient to a
location other than the Request-URI for completion of the request or
identification of a new resource. For 201 (Created) responses, the Location
is that of the new resource which was created by the request. For 3xx
responses, the location SHOULD indicate the server's preferred URI for
automatic redirection to the resource. The field value consists of a single
absolute URI.

       Location       = "Location" ":" absoluteURI

An example is:

       Location: http://www.w3.org/pub/WWW/People.html




> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
> [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Daniel Convissor
> Sent: Friday, December 19, 2003 2:07 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Need page refresh solution after form data
> processing
>
>
> On Fri, Dec 19, 2003 at 01:28:53PM -0500, Daniel Kushner wrote:
>
> > header('Location: page.php');
>
> You mean...
>   header('Location: http://domain/path/page.php');
>
> While the shorthand usually works, it's not guaranteed to do so.
>
> --Dan
>
> --
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>             data intensive web and database programming
>                 http://www.AnalysisAndSolutions.com/
>  4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>





More information about the talk mailing list