You are here: Re: unset $_POST variables « PHP Programming Language « IT news, forums, messages
Re: unset $_POST variables

Posted by axlq on 11/21/07 03:30

In article <7499a509-ee83-4a3d-94a8-492f06c20818@41g2000hsh.googlegroups.com>,
mtuller <mituller@gmail.com> wrote:
>I have a page that submits data to a database, and I want to make it
>so that if the page is refreshed, it doesn't submit the information

I asked this question here a couple days ago, under the subject
"Clearing the form submit cache"
http://groups.google.com/group/comp.lang.php/browse_frm/thread/ed456efb9eeaf936/a5fa3a600f613faa?tvc=1#a5fa3a600f613faa

Among some unhelpful replies, the answer is in that thread. Basically
you need to perform header("Location: ".$page_url); where $page_url is
the page that will show the result of the form submission (i.e. the form
is submitted, the data processed into a database, and the page at
$page_url reads and displays the relevant query result from the
database).

-A

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация