<?php session_start();  ?>

<head>
<style type="text/css">
p {font-family: arial}
a {font-family: arial}
h3 {font-family: arial}
h2 {font-family: arial}
label {font-family: arial}
</style>
</head>

<?php  
if (isset($_POST['confirm'])) 
{
  include("route4.php");
  return;
}
else if (isset($_POST['calculate'])) 
{
  include("route4.php");
  return;
}


?>
<p>
<br>

  <a href="http://escapes.ca/">
<img src="http://escapes.ca/styles/default/graphics/header_logo.gif" width="206" height="70" border="0" /></a>


<br>
</p>

<form id="route" name="route" method="post" action="index.php">
  <p>
  <label>
  <input name="Routing" type="radio" value="return" <?php echo ( ($_POST['Routing']!="oneway")? 'checked="checked"' : "" ) ?> />
    Return</label>
  <br />
  <label>
  <input  name="Routing" type="radio" value="oneway"  <?php echo ( ($_POST['Routing']=="oneway")? 'checked="checked"' : "" ) ?> />
    One-way</label>
  <br />
 <br />
  <label> Number of Passengers: <br />
  <input name="passengers" type="text" value=<?php  echo isset($_POST['passengers'])? '"' . $_POST['passengers'] . '"' : '"1"' ?> size="5" />
  </label><br />
  </p>
  <label> Origin city or IATA airport code <br />
  <input name="destination0" type="text" value= <?php echo '"' . $_POST['destination0'] . '"' ?> size="20" />
  </label>
  <?php 
  include("form4.php"); 
  /*<label><br /> Destination city or IATA airport code<br />
  <input name="Destination" type="text" value="" size="20" />
  </label>*/
  
  ?>
  <p>
   
	<input name="AddMultiple" type="submit" value="add more destinations" /> 
	<input name="Remove" type="submit" value="remove destination" />
	<br/>
	<br/>
	 <input name="confirm" type="submit" value="calculate emissions" />
  </p>
</form> 

<br>
  <a href="http://www.offsetters.ca">
<img src="http://www.trekescapes.com/offsetting/images/ofsetters-logo.gif" width="250" height="98" border="0" /></a>











