Alf Stockton wrote:
How do I disable Refresh and Back button. to Prevent duplicate entry
I used :-
ALTER TABLE table-name ADD CONSTRAINT NoDuplicates UNIQUE
(Date,MemberNumber)
Have a read of :-
http://www.thescripts.com/forum/thread156807.html
--
Regards,
Alf Stocktonwww.s
How do I disable Refresh and Back button. to Prevent duplicate entry
I used :-
ALTER TABLE table-name ADD CONSTRAINT NoDuplicates UNIQUE
(Date,MemberNumber)
--
Regards,
Alf Stocktonwww.stockton.co.za
Your love life will be... interesting.
My email disclaimer is available at ww
use session on your page..
- Original Message -
From: "Jarrett Meyer" <[EMAIL PROTECTED]>
To:
Sent: Friday, April 06, 2007 8:12 AM
Subject: Re: [PHP-WIN] duplicate entry
> Sorry, but to answer the original question, PHP cannot interact with the
client in this way. P
Thank you it works fine
Stut <[EMAIL PROTECTED]> wrote: sam rumaizan wrote:
> *"If the user hits refresh after submitting the form they will refresh
> nextpage.php. If they hit back they will be taken back to form.php"*
> Yes, *If the user hits refresh after submitting the form they will
> refr
sam rumaizan wrote:
*"If the user hits refresh after submitting the form they will refresh
nextpage.php. If they hit back they will be taken back to form.php"*
Yes, *If the user hits refresh after submitting the form they will
refresh **
*nextpage.php. Which is going to resubmit the data to mysq
sam rumaizan wrote:
How do I disable Refresh and Back button. to Prevent duplicate entry
Disabling client-side features like refresh and back is not the right
way to solve this problem. The most common solution is to redirect the
user to the next page from the form handler rather than outputt
In javascript you can force the page to redirect to the same one
whenever he goes to someother page using back,this can be done using
javacript.history.back()
functions
Jarrett Meyer wrote:
Sorry, but to answer the original question, PHP cannot interact with the client
in this way. PHP reside
Sorry, but to answer the original question, PHP cannot interact with the client
in this way. PHP resides with the server. Javascript resides with the client,
and even that is, at best, unreliable, since it can be turned off and/or not
work the same with all browsers.
You have to look for answer
Create a 'key' in the submission, something like...
Check that "form_start" does not already exist in the database, or, even better
that form_generation and form_user carries a unique key. Then check for a SQL
collision. That would be superior to a select and an insert.
Using linked relations
maybe you could just check the data base at the beginning of the
script for whatever you're adding
On 4/5/07, sam rumaizan <[EMAIL PROTECTED]> wrote:
How do I disable Refresh and Back button. to Prevent duplicate entry
-
Don't be flakey. Get Yahoo! Mail for
Depends if you want records with the same -MM-DD (my example) or
(your example).
After re-reading the original post it appears he only wants results as per
your query, oops :)
Cheers
Mike
> -Original Message-
> From: Uttam [mailto:[EMAIL PROTECTED]
>
> isn't it better to just:
>
isn't it better to just:
SELECT DISTINCT YEAR() FROM ;
regds,
-Original Message-
From: Michael Power [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 17:10
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Duplicate entry removal
Better yet define the required dataset
Better yet define the required dataset with SQL to speed the whole process
up:
"SELECT YEAR(your_date) FROM table_name GROUP BY your_date";
Cheers
Mike
> "Matt Hillebrand"
> array_unique()
>
> |-Original Message-
> |From: Per Christian [mailto:[EMAIL PROTECTED]
> |
> |Hi
> |
> |I'm build
array_unique()
|-Original Message-
|From: Per Christian [mailto:[EMAIL PROTECTED]
|Sent: Saturday, February 22, 2003 7:56 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] Duplicate entry removal
|
|
|Hi
|
|I'm building a PHP project for fun, and are going to get some
|dates from my database
14 matches
Mail list logo