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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 22, 2008 at 10:16 AM, Jason Pruim <japruim@xxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux