How can I use an HTML button to answer a conditional statement?

Cory

New member
I'm making a program that acts like a 20 questions game. I want to make a very simple GUI to make it pretty, but I'm having trouble integrating my logic with the HTML buttons. I get as far as where to send the user onclick, then I get stranded in Javascript. I'm using PHP as my main programming language, by the way. Is there a way I can get the button to go through a function without making ten thousand stupid project files?

Thanks,
 
Back
Top