Objective:

The objective of this assignment is to provide hands on experience of
§ Setting up PHP
§ Understanding basics of PHP
§ Processing HTML form data and sending response back to client using PHP

Guidelines

§ Code should be properly aligned and well commented.

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
[IMG]file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/msohtml1/01/clip_image002.jpg[/IMG]

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

If the age of the user will be equal to or more then 18 year it will display message as shown in Figure # 3



Solution will be uploaded soon


Sponsored Links