hmmm that's odd, seems ok on my end... at any rate i'll just put the basics of it below. i set up the array before anything else in the .html file as such:
<?
if ($Number of Students == $Three)
{ $Tuition[] = "US$990";
$Tuition[]= "AU$1320"; }
elseif ($Number of Students == $Four)
{ $Tuition[] = "US$1320";
$Tuition[] = "AU$1760"; }
elseif ($Number of Students == $Five)
{ $Tuition[] = "US$1550";
$Tuition[] = "AU$2075"; }
elseif ($Number of Students == $Six)
{ $Tuition[] = "US$1860";
$Tuition[] = "AU$2490"; }
elseif ($Number of Students == $Seven)
{ $Tuition[] = "US$2170";
$Tuition[] = "AU$2905"; }
elseif ($Number of Students == $Eight)
{ $Tuition[] = "US$2480";
$Tuition[] = "AU$3320"; }
elseif ($Number of Students == $Nine)
{ $Tuition[] = "US$2790";
$Tuition[] = "AU$3735"; }
else ($Number of Students == $Ten)
{ $Tuition[] = "US$2950";
$Tuition[] = "AU$3950"; }
if($Currency == $US)
{ $Charged = $Tuition[0] }
else($Currency == $AU)
{ $Charged = $Tuition[1] }
print <<HTMLF;
...and then proceeded to put in the rest of the html for the form, where there was a choice between US and AU currency as well as radio buttons to choose how many students were registering. then at the very end i put a text box that i wanted to display $Charged:
<input type="text" name="Charged" size="30">
...finished the html and ended the script:
HTMLF
?>
any ideas?
thanks again to anyone who replies- this project means a lot to this school!
lauren k
lauren@mables.com