Jump to content

Check Box, 10 numbers, can only pick 5? How to submit to SQL?


Stryves

Recommended Posts

Hello!

 

I've been using the Option / Select form to do this so far, where I offer 5 forms that count 1 2 3 4 5 6 7 8 9 10.

 

The SQL table is ID, n1, n2, n3, n4, n5

 

I Just take whats been submitted throw the above dropdown select menu, but I've been getting ridiculous amount of requests, to offer a format like the below using check boxes.

 

[] 1 [] 2 [] 3 [] 4 [] 5

[] 6 [] 7 [] 8 [] 9 [] 10

 

My problem is, using a method like this where the above is check boxes, I don't know how to assign the value to the sql n1 field. I'm also at a loss as to what would prevent them from select 6 numbers...

 

I have a feel I better read up more on arrays... Any ideas?

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.