Advertisement

08.11.2008 at 02:10PM PDT, ID: 23639439
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.7

Checkboxes conflict -- javascript vs. PHP

Asked by scrathcyboy in PHP Scripting Language, JavaScript

A form with 12 checkboxes, and an INPUT field associated with each, like --

form.elements [0]   checkbox   1         form [1]     input % associated with checkbox 1
form.elements [2]   checkbox   2         form [3]     input % associated with checkbox 2         ...up to 12 ckboxes

I wanted to NAME each checkbox different, with a value = 0, so I can test with javascript and set the VALUE of each checked checkbox to 1.   This way, when the form gets to PHP, I can look through the checkboxes for a value of 1, and if so, I can email the NAME of the checkbox and the input % associated with it -- e.g.

'The name called "ABC choice" has been assigned 40%'  and
'The name called "BBC choice" has been assigned 60%.'

That is the goal of the PHP.  Without a unique name for each checkbox, the input percents mean nothing.

But in PHP they say to NAME all checkboxes the same -- name="choice[]" -- square brackets puts them in an array, and the value is the name.  This method has problems, if nothing is checked, PHP returns a visible error, which is unacceptable (No return to the page, it all gets emailed to me).

WHAT I WOULD LIKE TO DO IS -- keep my original plan of names, and find a way in PHP to easily loop through all the checkboxes and related % inputs, finding only the ones with value=1, and email those results and percents as above.

The logic of how best to handle these checkboxes in PHP and working PHP code is my main concern here.
Can anyone help withPHP code to do it?   I've read most relevant links, so just ideas and code, please!  
Start Free Trial
[+][-]08.11.2008 at 02:39PM PDT, ID: 22208529

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 02:43PM PDT, ID: 22208557

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 02:54PM PDT, ID: 22208620

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 02:55PM PDT, ID: 22208622

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 03:52PM PDT, ID: 22208953

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.11.2008 at 04:18PM PDT, ID: 22209034

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 04:28PM PDT, ID: 22209093

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.11.2008 at 05:15PM PDT, ID: 22209310

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 06:32PM PDT, ID: 22209563

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, JavaScript
Sign Up Now!
Solution Provided By: xakem
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.11.2008 at 06:40PM PDT, ID: 22209580

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 09:48PM PDT, ID: 22210134

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 10:12PM PDT, ID: 22210206

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.12.2008 at 05:00AM PDT, ID: 22212006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.12.2008 at 09:05AM PDT, ID: 22214499

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906