RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: January 12, 2007 11:38 AM > To: Beauford > Cc: 'PHP' > Subject: Re: [PHP] Forms and destroying values > > Beauford wrote: > > So the answer is, there is no way to destroy the values. Question >

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
t passing through the database transaction. Satyam - Original Message - From: "Beauford" <[EMAIL PROTECTED]> To: "'PHP'" Sent: Friday, January 12, 2007 5:23 PM Subject: RE: [PHP] Forms and destroying values So the answer is, there is no way t

RE: [PHP] Forms and destroying values

2007-01-12 Thread Németh Zoltán
2007. 01. 12, péntek keltezéssel 11.43-kor Robert Cummings ezt írta: > On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote: > > Beauford, > > > > The unset() function is for session variables, which are remembered by > > the server even after the script finished running, that's their > > purpos

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote: > Beauford, > > The unset() function is for session variables, which are remembered by > the server even after the script finished running, that's their > purpose. Your variables are not session variables but normal > variables. Wrong! Pleas

RE: [PHP] Forms and destroying values

2007-01-12 Thread Németh Zoltán
[mailto:[EMAIL PROTECTED] > > Sent: January 12, 2007 8:21 AM > > To: Beauford; PHP > > Subject: Re: [PHP] Forms and destroying values > > > > This issue comes over and over again. The trick, as I > > learned from this list, is to send a redirect to the browser

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 11:23 -0500, Beauford wrote: > So the answer is, there is no way to destroy the values. Question then, what > is unset() used for as it doesn't seem to do anything? With a language as > good as PHP I though there would be some way to do this. I have got a > workaround, but th

Re: [PHP] Forms and destroying values

2007-01-12 Thread Stut
n hitting the server again. Hope that makes it clearer. -Stut -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: January 12, 2007 8:21 AM To: Beauford; PHP Subject: Re: [PHP] Forms and destroying values This issue comes over and over again. The trick, as I learned from t

RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
also still confused as to why giving them a null value doesn't work. Thanks to all. > -Original Message- > From: Satyam [mailto:[EMAIL PROTECTED] > Sent: January 12, 2007 8:21 AM > To: Beauford; PHP > Subject: Re: [PHP] Forms and destroying values > > This i

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
ase update. It will be this address, not the post that made the database update, that the browser will remember. Satyam - Original Message - From: "Beauford" <[EMAIL PROTECTED]> To: "PHP" Sent: Friday, January 12, 2007 9:27 AM Subject: [PHP] Forms and des

Re: [PHP] Forms and destroying values

2007-01-12 Thread clive
Beauford wrote: Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. Perhaps a session variable that is set once the form is submitted. Depending on the data you could also look at having a primary key in the database.

Re: [PHP] Forms and destroying values

2007-01-12 Thread Miguel J. Jiménez
El Fri, 12 Jan 2007 03:27:12 -0500 "Beauford" <[EMAIL PROTECTED]> escribió: > Hi, > > How do I stop contents of a form from being readded to the database > if the user hits the refresh button on their browser. > > I have tried to unset/destroy the variables in several different > ways, but it st

Re: [PHP] Forms and destroying values

2007-01-12 Thread Fredrik Thunberg
It doesn't help to reset any values. The form data is being resent by the browser itself, just if the user presses the submit button again with the same data. What you could do is mabye use a session to see if the particular user has sent form data before. /Fredrik Thunberg Beauford skrev:

[PHP] Forms and destroying values

2007-01-12 Thread Beauford
Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. I have tried to unset/destroy the variables in several different ways, but it still does it. After the info is written I unset the variables by using unset($var1, $var2,