php-windows Digest 7 Apr 2007 10:47:26 -0000 Issue 3184

Topics (messages 27633 through 27639):

Re: duplicate entry
        27633 by: bob plano
        27634 by: Jarrett Meyer
        27635 by: Jarrett Meyer
        27637 by: chandar
        27638 by: Stut

Re: Gantt-charts in PHP?
        27636 by: Manuel Lemos

How to read the username
        27639 by: sam rumaizan

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
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 Mobile and
always stay connected to friends.

--- End Message ---
--- Begin Message ---
Create a 'key' in the submission, something like...

<input type="hidden" name="form_start" value="<?=date();?>" />

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 and keys is your friend, as long as you have a database 
that supports these utilities.
 
Thank you,
Jarrett Meyer
http://jarrettmeyer.blogspot.com

No trees were harmed during this transmission; however, several electrons were 
terribly inconvenienced.

----- Original Message ----
From: sam rumaizan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, April 5, 2007 7:15:36 PM
Subject: [PHP-WIN] duplicate entry

How do I disable Refresh and Back button. to Prevent duplicate entry



 

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

--- End Message ---
--- Begin Message ---
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 answers that can be solved from your end without involving 
the client.
 
Thank you,
Jarrett Meyer
http://jarrettmeyer.blogspot.com

No trees were harmed during this transmission; however, several electrons were 
terribly inconvenienced.

----- Original Message ----
From: sam rumaizan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, April 5, 2007 7:15:36 PM
Subject: [PHP-WIN] duplicate entry

How do I disable Refresh and Back button. to Prevent duplicate entry



 

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

--- End Message ---
--- Begin Message --- 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 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 answers that can be solved from your end without involving 
the client.
Thank you,
Jarrett Meyer
http://jarrettmeyer.blogspot.com

No trees were harmed during this transmission; however, several electrons were 
terribly inconvenienced.

----- Original Message ----
From: sam rumaizan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, April 5, 2007 7:15:36 PM
Subject: [PHP-WIN] duplicate entry

How do I disable Refresh and Back button. to Prevent duplicate entry



--------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.


--- End Message ---
--- Begin Message ---
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 outputting the next page from the form handler.

For example...

form.php shows the form, which submits to formhandler.php which processes the form and then does a header('Location: ...') redirect to nextpage.php.

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.

-Stut

--- End Message ---
--- Begin Message ---
Hello,

on 04/03/2007 03:18 AM Gustav Wiberg said the following:
> I've been looking around for any PHP-based component (object) that
> supports gantt-charts. (like MS-project look-a-like but on the web)
> Is there anything like that out there? (I have found some projects on
> sourceforge, but without screenshots or contactinfo... ):

Here is a class exactly for that, generating Gantt charts in PHP:

http://www.phpclasses.org/gantt

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
I need my webpage to read the username of the PC (machine). Is it possible to 
do this with PHP?
   



 

 
---------------------------------
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.

--- End Message ---

Reply via email to