Jump to content

[SOLVED] Does PHP have a limit on number of submitted text fields?


TQD

Recommended Posts

Hi everyone ;D

 

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 :'(

Link to comment
Share on other sites

Here you go :D

 

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!!! :P

 

[attachment deleted by admin]

Link to comment
Share on other sites

$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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.