webDip dev coordination forum / public access todo list
It is currently Sat May 26, 2018 2:13 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jan 06, 2009 9:39 pm 

Joined: Wed Oct 08, 2008 12:47 pm
Posts: 726
When orders are ready players can finalize. If they then refresh the page after the turn has cycled, this call to finalize is resent. I suggest that a hidden field "phase" is added to the form, with the phase as it's value. Then, a simple check at the top of the script can compare this to the game's current phase. If they are different rather than processing any updates or finalizations the script can ignore them and move on to outputting the page.
Oh, and it would be nice to output a gentle warning at the top of the page to say this has happened, especially if players were trying to update their orders but the game processed before they finished submitting them, as otherwise they might wonder why what they ordered didn't occur.
This could be thought of as a bug, but the site is correct, it's just another safeguard for user errors.

PostPosted: Sat Jan 10, 2009 4:01 pm 
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
Yup there are a few things where there needs to be a unique identifier so that a form can only be submitted once, at some point I hope to add some code that'll provide this functionality for all the forums (e.g. message posting forms, mod CP forms, etc)

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group