开发者

Detecting Order of Checkbox Selection and Passing along Data V2

Im trying to create a page that allows a user to select a maximum of 8 checkboxes out of 25 checkboxes total, While at the same time detecting the exact order the user clicked the checkboxes.

My question is, What code can I add to the javascript to gather this info and pass it along to a page named check_combination.php I have been told that this would be a hidden field, But being a noob Im stuck. Can someone please tell me what code i would need to gather it, and what type of code I would nee to extract it on check_combination.php

Here is an exaple of what I have so far Click Here to test in Real Time at JSFIDDLE

I am a noob to javascript, but I have been able to piece together vario开发者_开发百科us snippets of code to get as far as I have. The only thing I am missing is Im not sure how to pass the variables along when a user hits the submit button.


You're already there. After you submit the form the result values will be submitted as well, and you can find them in $_POST['result'] using PHP.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜