Hey there,

I'm new to php, but have been using a book to guide me through the code. I have created an order form and have run into this:

Parse error: parse error, unexpected T_STRING in /home/content/a/r/t/artdezign/html/new_order/pages/orderreceived.php on line 5

Here is the php code I have used in my file.

<?php
$to = "info@enableart.org";
$subject = "Order from EnableArt.org";
$body = $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST . $_POST
mail($to,$subject,$body);
?>

Line 5 refers to the mail code at the bottom. I can't figure out why I am getting that error. I'd also like to know if there is a cleaner way of requesting all those posts. Do I need to have $_Post before all those binders? (Identifiers?) Are there any other scripting things that would help?

The help is much appreciated

You have no ; at the end of the $body statement.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.