TQD Posted August 28, 2007 Share Posted August 28, 2007 Hi everyone I have had this annoying bug on my site for a while now. I have about 40 text fields being submitted and being processed on one page. It's a roulette web game, so they all need to be there on the page and cannot be split up either. All the fields are being recognised by PHP except the last two, I've checked my code over and over and I am certain it is not a problem with that! Is there a limit to the number of "posts" from text fields or the number of variables or something? Thank you :'( Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted August 28, 2007 Share Posted August 28, 2007 None that I have ever reached and besides my personal experience the answer is no Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 28, 2007 Share Posted August 28, 2007 Sometimes you need another eye. The problem is bound to be in your code, just post it. Quote Link to comment Share on other sites More sharing options...
Asperon Posted August 28, 2007 Share Posted August 28, 2007 I was about to post exactly that....you beat me too it..... Quote Link to comment Share on other sites More sharing options...
TQD Posted August 28, 2007 Author Share Posted August 28, 2007 Here you go I've attached the code that's in question, the rest is working fine. I just get: Your bet must be at least $10 to play whenever I the second or third columns. Thanks for the help!!! [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
TQD Posted August 28, 2007 Author Share Posted August 28, 2007 And yes, I know the code is ugly and inefficient, I made this page over a year ago before I knew better ways of doing things! Quote Link to comment Share on other sites More sharing options...
freeloader Posted August 28, 2007 Share Posted August 28, 2007 $secondco1 = $_POST['secondcol']; if(($secondcol != '') and (!ereg("^[0-9]+$", $secondcol))) { echo "Invalid bet entry!"; } else { $thirdco1 = $_POST['thirdcol']; if(($thirdcol != '') and (!ereg("^[0-9]+$", $thirdcol))) { echo "Invalid bet entry!"; } else { $secondco1 and $thirdco1 should be $secondcol and $thirdcol Quote Link to comment Share on other sites More sharing options...
TQD Posted August 28, 2007 Author Share Posted August 28, 2007 Ahhhhh Dreamweaver displays 1's and l's as the same thing! How stupid do I feel Thanks for your help and to the other's for theirs to!! Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 28, 2007 Share Posted August 28, 2007 I avoid problems like this by using a font specially made for programming called Proggy. It's cute too. Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 29, 2007 Share Posted August 29, 2007 It's cute too. Something every programmer aspires to achieve when writing code. Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 29, 2007 Share Posted August 29, 2007 I'm female, I'm allowed to say stuff like that Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 29, 2007 Share Posted August 29, 2007 I'm female, I'm allowed to say stuff like that With a kitten on your shoulder, yes you are. Quote Link to comment Share on other sites More sharing options...
TQD Posted August 29, 2007 Author Share Posted August 29, 2007 Thank you for the font! That is ideal Quote Link to comment 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.