View Single Post
  #3 (permalink)  
Old 10-06-06, 12:59 AM
Tim Mousel Tim Mousel is offline
Wannabe Coder
 
Join Date: Jan 2005
Posts: 157
Thanks: 0
Thanked 0 Times in 0 Posts
This code works:

PHP Code:

<?php
$cost 
25;
$type $_REQUEST["Type"];

if (
$type == "Business"
   
$cost $cost 10;

elseif (
$type == "Personal"
   
$cost $cost 5;

echo 
"Total Price:" " £" $cost
?>
You need to assign the new value to $cost.

Tim
__________________
Five Star Review Script - Add reviews to your website!
Mixed Martial Arts - Learn the fastest growing martial art
Women's Self-Defense - Courses and DVDs available
Reply With Quote