simple score-card program

Just starting out? Need help? Post your questions and find answers here.
TitaniumT
New User
New User
Posts: 6
Joined: Sun Aug 28, 2005 9:30 am

simple score-card program

Post 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 ??
TitaniumT
theteapot
User
User
Posts: 37
Joined: Fri Sep 09, 2005 7:46 am

Post 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
Using PB 3.94 demo AND PROUD OF IT!!

*Goes back to little hole*
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post 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. :)
-Beach
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

You can use Javascript, ASP(.net), jsp, cgi
Post Reply