Sunday, 05 20th

Last update09:44:47 AM

Login With Facebook

Combinestudy

Fall 2010 CS506 5 Solution

Problem Statement:

You are required to make a simple web application using PHP that will take Name and Age of Voter. And according to his/her age it will display the message either voter is eligible to vote or not.

You will write a page index.php, this will be simple page that will contain a html form, this page will have simple html so you can either .html extension or .php, i.e. you can just make index.html if you like.

The user will entre his name and age on this page and click on submit

cs506fall20105_1
Figure # 1 (index.php)


If the age of the user is less then 18 years next page will display message as shown in figure 2.

cs506fall20105_2
Figure # 2 (result.php)

If the age of the user will be equal to or more then 18 year it will display message as shown in Figure # 3
cs506fall20105_3
Figure # 3 (result.php)