php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS506 assignment no 5 fall 2010 solution 29-01-2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
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
[FONT=&quot][IMG]file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/msohtml1/01/clip_image002.jpg[/IMG]
[Image: 1.JPG]
[/FONT] If the age of the user is less then 18 years next page will display message as shown in figure 2.
[Image: 2.JPG]
If the age of the user will be equal to or more then 18 year it will display message as shown in Figure # 3
[Image: 3.JPG]


Solution will be uploaded soon
Reply
#2
Please provide solution asap!!
Reply
#3
acha u dont have?
Reply
#4
No....wait!!!!!!!
Reply
#5
(page name) index.html

[HTML]<html>
<head>
<title></title>
</head>
<body>
<form action="result.php" method="post">
Name: <input type="text" name="Name"><br/><br/>
Age: <input type="text" name="Age"><br/><br/>
<input type="submit" name="submit" value="submit">
<input type="reset" name="reset" value="reset">


</form>
</body>
</html>


(page name) result.php


<html>
<head>
<title></title>
</head>
<body>
<?php
$name=$_POST['Name'];
$age=$_POST['Age'];

if($age<=17){
echo "$name you are not eligible to vote";
}
else {
echo " $name you are eligible to vote";

}
?>
</body>
</html>[/HTML]
Reply
#6
I guess so!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,378 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,969 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 2,000 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,243 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,305 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,034 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,724 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,860 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,762 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,861 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support