Page 1 of 1

simple score-card program

Posted: Tue Mar 07, 2006 4:29 am
by TitaniumT
I want to create a simple score-card program to calculate the score, and then show the result relating to that score.

Program look like this:

1. How old are you ?
a. < 18 (15 points)
b. 18 - 25 (20 p)
c. 26 - 40 (22p)
d. >40 (12p)

2. Your income ?
a. <10.000 (20p)
b. 11000 - 22000 (25p)
c. 25000 - 40000 (26p)
d. >40.000

........
Every answer is using choice box. When users click finish Button, it will calculate the points and show the result, such as:
10-20p : you are ....
20-25p: ......
25-35p:....

Should we use purebasic or use PHP ??

Posted: Tue Mar 07, 2006 6:45 am
by theteapot
A bit controversial, asking whether to use Purebasic or PHP!

I would recommend using PHP, because to write a form, it's much simpler than making a windows executable. I won't post any code in the PB forum, but all you need to do is to create a form, and then submit it to a basic checking script. It should be very simple.

TheTeapot

Posted: Tue Mar 07, 2006 6:47 am
by Beach
If you already have a host for your web site, chances are they already have PHP loaded. However, if you are looking to create this app to deliver a dynamic web page without loading PHP or using VBscript, then yes - by all means - bang it out with PureBasic. :)

Posted: Tue Mar 07, 2006 8:23 am
by Bonne_den_kule
You can use Javascript, ASP(.net), jsp, cgi