Thursday, April 14, 2011

How to Make Assessment Scale in php Scripts

Direct only. His logic we can use if else (statement in php) cuman this way rather old school but pretty effective.

1"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">
2"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">//inputan nomer, bisa didapetin dari form method get maupun post, tetapi disini saya masukkan langsung. / / Input number, can didapetin of the form get method and post, but here I enter directly.
3"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">$number = 87; $ Number = 87;
4"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">//statemen 1 (1-20) / / Statement 1 (1-20)
5"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">if (($number <= 20) && ($number >= 1)) { if (($ number <= 20) & & ($ number> = 1)) {
6"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">echo "sangat kurang baik"; echo "very poor";
7"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">} else if (($number <= 40) && ($number >= 21)) { } Else if (($ number <= 40) & & ($ number> = 21)) {
8"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">echo "kurang baik"; echo "not good";
9"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">} else if (($number <= 60) && ($number >= 41)) { } Else if (($ number <= 60) & & ($ number> = 41)) {
10"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">echo "sedang"; echo "medium";
11"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">} else if (($number <= 80) && ($number >= 61)) { } Else if (($ number <= 80) & & ($ number> = 61)) {
12"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">echo "baik"; echo "good";
13"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">} else if (($number <= 100) && ($number>=81)) { } Else if (($ number <= 100) & & ($ number> = 81)) {
14"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">echo "sangat baik"; echo "very good";
15"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">} else { } Else {
16"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">echo "nomor tidak valid"; echo"Invalid number";
17"_tipon(this)" onmouseout="_tipoff()"> class="google-src-text"style="direction: ltr; text-align: left">} }

then the output from the php script is "very good". hopefully help

No comments:

Post a Comment