Hi, thanks for the reply But I am still having probs! Have the way to create variables changed recently?? I had this code working several months ago! I have attached the code - as you can see i have declared the variables using different methods - all of which are producing error messages (see below)
PHP Notice: Undefined index: DOCUMENT_ROOT in F:\www\~scp.php on line 2 PHP Notice: Undefined index: oilqty in F:\www\~scp.php on line 3 PHP Notice: Undefined index: sparkqty in F:\www\~scp.php on line 4
the code:
<?php //create variable names in long name
$tireqty = $_SERVER['DOCUMENT_ROOT'];
$oilqty = $HTTP_SERVER_VARS['oilqty'];
$sparkqty = $HTTP_POST_VARS['sparkqty'];
?>
<html>
<head>
<title>bobs auto parts - order results</title>
</head>
<body>
<h1>Bobs auto parts</h1>
<h2> Order results</h2>
<?php echo '<p>Order processed at ';
echo date('H:i, jS F');
echo'</p>';
echo '<p>Your order is as follows: </p>';
echo $tireqty.'tyres<br />';
echo $oilqty.'bottles of oil<br />';
echo $sparkqty.' Spark plugs<br />';
?>
</body>
</html>