<?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional/EN" "http://www.w3.org/TR/html4/DTD/loose.dtd"> <html> <head><title>Calculated Lightcurve Data</title></head> <body> <pre> Input data used to calculate the lightcurve<br /> <?php // Get input data $text = array( "Wavelength = ".$_SESSION['lambda']." microns", "Semi-major axis = ".$_SESSION['a']." AU", "Eccentricity = ".$_SESSION['e'], "Inclination = ".$_SESSION['i']." degrees", "Argument of periastron = ".$_SESSION['lomega']." degrees", "Longitude of ascending node = ".$_SESSION['bomega']." degrees" ); $n=$_SESSION['n']; $ntext="Number of calculated points = ".$n; for ($i=0; $i<6; $i++) { echo $text[$i]; echo '<br />'; } echo $ntext; ?> <br /> Calculated Lightcurve Time (years) Distance (AU) Log<sub>10</sub>(Planet/Star Flux Ratio) <?php for ($i=0; $i<$n; $i++) printf("%4d %7.4f %10.4f %10.4f\n",$i+1, $_SESSION['time'][$i],$_SESSION['dist'][$i], $_SESSION['logratio'][$i]); ?> </pre> </body> </html>