RE: [PHP] BIT OT - preventing double submit

2003-04-04 Thread Sysadmin
What happens when the refresh?  How about this...when the form loads 
the first time it generates a unique_id, and when you submit the form 
it has to match that unique_id.  That would stop people from being able 
to refresh because once the unique_id is submitted, it won't accept any 
more submissions with that unique_id.  It makes sense to me, but this 
is my Friday ramblings

-Original Message-
From: Randum Ian [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 9:11 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] BIT OT - preventing double submit


Isn't it easy just to do an "onClick Disable Button" kinda thing?

> i've seen this mentioned here a few times , ok its jsript , but i dont
> think there is anyone here who doesnt use any jscript or even html ??
> heh
> 
> basically all u do is disable the button once pressed
> 
> <!--
> function Localize(pStr){return pStr;}
> var ProcessingText = Localize("Processing");
> var cnt=0;
> function doValidate(f){
> f.BIN_button.value=ProcessingText;
> f.BIN_button.disabled=true;
> if (cnt==0)f.submit();
> cnt++;
> }
> //-->
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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


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



Re: [PHP] BIT OT - preventing double submit

2003-04-04 Thread Randum Ian
Isn't it easy just to do an "onClick Disable Button" kinda thing?

> i've seen this mentioned here a few times , ok its jsript , but i dont
> think there is anyone here who doesnt use any jscript or even html ??
> heh
> 
> basically all u do is disable the button once pressed
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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