I am using Dreamweaver MX and when I put in the following code:
<?php
$qty4000 = $HTTP_POST_VARS['qty4000'];
$qty4000-A = $HTTP_POST_VARS['qty4000-A'];
$qtyM4000 = $HTTP_POST_VARS['qtyM4000'];
echo '<p>Order Processed at';
echo date ('H:i, jS F Y ');
echo '</p>';
echo '<p>Your Order is as follows:</p>';
echo $qty4000.' SCEPTER 4000<br />';
echo $qty4000-A.' SCEPTER 4000-A<br />';
echo $qtyM4000.' SCEPTER M4000<br />';
?>
(the "qty4000" and others are the names of the fields from my input page)
I receive the following error:
"parse error on line 14"
Line 14 ---> $qty4000-A = $HTTP_POST_VARS['qty4000-A'];
But based on some modifications that I have done to the code (such as changing the field names from "qty4000" to "4000", which is what I really wanted anyway), it seems as if it's not recognizing the $ symbol... is that possible?
Here is the error message:
"parse error, expecting T_VARIABLE' or'$'' on line 13"
Line 13---> $4000 = $HTTP_POST_VARS['4000'];
What's a noobie to do?