Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

Notes On Sample PHP

Loading...

Published in: PHP And MySQL
654 Views

This a sample php file with html form. The html form has the content and will submit the form and in the php file it will calculate according to the amount entered.

Maghima T / Madurai

4 years of teaching experience

Qualification: B.Tech/B.E. (J.J. College Of Engineering And Technology (JJCET), Tiruchirappalli - 2008)

Teaches: Basic Computer, Computer for official job, School Level Computer, Computer, English, EVS, History, Mathematics, Science

Contact this Tutor
  1. Hwl form.html Sample BCS350 Assignment 1 -- Student Name lnternet Service Packages Package A: For $19.95 per month, 200 hours of access are provided. Additional hours are $0.40 per hour. Package B: For $29.95 per month, 300 hours of access are provided. Additional hours are $0.35 per hour. Package C: For $39.95 per month, unlimited access is provided. Enter your package and hours used: Package:
  2. Hours: < form action="hwl form. html " Student Name BCS350 Assignment 1 < ?php / *echo $ GET ["package"] • echo $ GET "hours $pack $ GET ["package $ hou $ GET ["hours"] • if ($pack if ($pack "A" I I $pack "B" $pack if($hou > 200) $ ho $hou—200; ($ho*O.40) + 19.95; $hourl $hou—300; ($hour1*O.35), $hour2 $hou; The package you entered: The hours you used: Your monthly charge is $ By switching to Package B you would save
  3. By switching " $hour2 < ?php else if ($pack if($hou > 300 & & $ ho $hou—300; ($ho*O.35) to Package C you would save The hours you used: Your monthly charge is $ By switching to Package C you would save The hours you used: Your monthly charge is $
  4. By switching to Package B you would save $