lundi 23 avril 2018

(Prolog) How to verify rules created and link with input from html

I currently develop expert system for web based and had studied on source code on how getting input from Joptionpane and pass the input to verify the rules. The input I use is radio button and does not get any idea how to link my rules with html input and verify it;

input([name=fv, type=radio, value='high_fever'],'High Fever'),br([]),
input([name=fv, type=radio, value='mild_fever'],'Mild Fever'),br([])

and this is my rules;

hypothesis(suspect) :-
symptom(high_fever),
symptom(muscle_or_bone_pain),
symptom(headache).




Aucun commentaire:

Enregistrer un commentaire