InMotion Hosting Support Center


Category: How To

2013-06-23 3:54 am EST

Hits: 600
how are you?(sorry ,about my english is n't very good)
I want to explique what I want to do exactly
when the student select one the option (never ,almost always, sometimes or rarely ) for all questions in a page then I will sum the answer for each question for ex:never = 0
rarly = 1
sometimes = 2
almost =3
always = 4

answer of q1 +answer q2 +answer q3 /( 3) number of questions
then I'll sent this Result to a report ,it will be some guidances to the students
how i do this by drupal , must I enter snippet php in drupal ???

thank you for your time

You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,032 Points
2013-06-24 9:28 am EST
Hello shahkash,

While I would think that you should be able to us a snippet, I have not seen the code you have. You will want to try using it via snippet as a test. Drupal has set out some guidelines for using php snippets in your website, follow those and you will be able to find out if your code will work there.

Best Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!