Danny620 Posted December 24, 2009 Share Posted December 24, 2009 Hi I have a set of text fields and i would like to do some vaildation on them e.g textbox 1 = 100 textbox 2 = 200 textbox 3 = 300 and i would like the user to not go over there soilder limit so say i have 100 of soilders in the db and 200 spear fighter then the first textbox 1 would pass and so would the second put wot if the user put more troops in textbox 3 that they did'tn really have how do i stop the user from entering more troops than they should have thanks. Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/ Share on other sites More sharing options...
.josh Posted December 24, 2009 Share Posted December 24, 2009 You could try telling them to stop. If that don't work, get a large dog, that usually scares people away. If that still doesn't work, I suggest looking into getting sharks with lasers. Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-983787 Share on other sites More sharing options...
Danny620 Posted December 24, 2009 Author Share Posted December 24, 2009 well u see i tryed that lol Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-983803 Share on other sites More sharing options...
.josh Posted December 24, 2009 Share Posted December 24, 2009 oh come on now, why do you feel the need to lie? If you really tried sharks with lasers, you wouldn't have posted, as that would have definitely worked. Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-983816 Share on other sites More sharing options...
FaT3oYCG Posted December 24, 2009 Share Posted December 24, 2009 You may also try learning PHP? or paying somone to do it for you (the whole game that is (*WINK* *WINK*)). Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-983818 Share on other sites More sharing options...
ignace Posted December 24, 2009 Share Posted December 24, 2009 oh come on now, why do you feel the need to lie? If you really tried sharks with lasers, you wouldn't have posted, as that would have definitely worked. I have to disagree they don't. Tried them as a security measure but some still got passed them albeit losing a limb or two Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-983821 Share on other sites More sharing options...
.josh Posted December 24, 2009 Share Posted December 24, 2009 You probably got the off-brand sharks-with-laser-pointers then. Next time, don't be so skimpy. Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-983825 Share on other sites More sharing options...
Danny620 Posted December 29, 2009 Author Share Posted December 29, 2009 haha i sorted it Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-985657 Share on other sites More sharing options...
iPixel Posted December 29, 2009 Share Posted December 29, 2009 Do a little javascript / ajax / php combo here... on each key up, using ajax / php check ur database to make sure that the # is not greater then the person has in the database table, and if it exceeds you can then use javascript to 1. warn the user via alert and 2. clear the text box or reset it to the max # the user can use. Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-985662 Share on other sites More sharing options...
ignace Posted December 29, 2009 Share Posted December 29, 2009 You probably got the off-brand sharks-with-laser-pointers then. Next time, don't be so skimpy. How do you mean off-brand? It said Shark.. How off-brand is that? Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-985668 Share on other sites More sharing options...
laffin Posted December 30, 2009 Share Posted December 30, 2009 sounds like ya got the walmart brand, if u go to best buy, they got a selection of sharks sharks with laser eyes, land sharks, pet sharks (kid friendly, burglar chewed) Quote Link to comment https://forums.phpfreaks.com/topic/186273-game-design-help/#findComment-985729 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.