Re: Reload page after form submit

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

 



From: Martin Marques <martin@xxxxxxxxxxxxxxx>
Stut wrote:
Wagner Garcia Campagner wrote:

<META HTTP-EQUIV='refresh' content='0;URL=index.php'>

header('Location: index.php');

Although technically speaking that should be an absolute URL.

AFAIK, they are both equivalent.

Ahhh, if the OP meant, "Load a different page after doing some form processing in the current PHP page", then just go with the PHP "header" function. The HTML META HTTP-EQUIV='refresh' would require the HTML be rendered first. The PHP "header" would be slightly faster, and you are already in the PHP script.

I'm like, "How is the page becoming outdated? You are not still on that page -- it's gone. The next page display will gather the latest info."

_________________________________________________________________
A new home for Mom, no cleanup required. All starts here. http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

--
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