Hi, thanks for the really speedy reply, but i have made sure i declare the variables before anything and i still get this message on another page to:
Warning: Cannot send session cache limiter - headers already sent (output started at c:\phpdev\www\php_assignment\payment.php:2) in c:\phpdev\www\php_assignment\payment.php on line 3
if it helps here is the code from the first page where i get a message:
<?php
session_start();
$_SESSION['origin'] = $_POST[selorigin];
$_SESSION['destination'] = $_POST[seldestination];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<form action="payment.php" method="post">
<div class="middle" align="center">
<div class="surround2" align="center">
<div class="heading">Enter number of tickets required</div>
<div class="tick_quan">
<select class="txtqty">
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
</select>
</div>
<div class="heading">Select the class of your ticket</div>
<div class="ticket">
<select name="txtclass">
<option value="150">Economy
<option value="200">Business
<option value="300">First
</select>
</div>
<div class="sub2">
<input type="submit" value="submit"> <input type="reset" value="reset">
</div>
</div>
</div>
</form>
</body>
</html>