Re: After INSERT form submit - Data doesn't refresh!

From: Date: Tue, 22 Jul 2008 14:28:04 +0000
Subject: Re: After INSERT form submit - Data doesn't refresh!
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-277170@lists.php.net to get a copy of this message
On Tue, Jul 22, 2008 at 10:16 AM, Jason Pruim <japruim@raoset.com> wrote: > Without seeing the code it's hard to tell.. But couldn't you just use a > header("Location: a.php"); after the insert statement? Or is that too ugly > of a hack? :) > > It works for me on a project I'm working on. > > I wouldn't consider it a hack. I know some people on the list don't care for redirects, but I tend to use them this way to keep page functions in line with the semantics of GET (request data) and POST (modify state/data). Andrew

« previous php.general (#277170) next »