LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Another PHP parse error (https://www.linuxquestions.org/questions/programming-9/another-php-parse-error-750119/)

hiddenmirageads 08-25-2009 09:45 AM

Another PHP parse error
 
ok the first error is fixed but now i have this new error.

Parse error: parse error in C:\wamp\www\contactform.php on line 40

code:

<?php

/* Email Variables */

$emailSubject = 'contactformprocess!';
$webMaster = 'hiddenmirageads@gmail.com';


/* Data Variables */

$nickname = $_POST['username'];
$email = $_POST['Email'];
$describe = $_POST['Describe'];
$footage = $_POST['footage'];
$pricebudget = $_POST['checkbox'];
$time = $_POST['Time'];
$paypal = $_POST['Paypal'];




$body = <<<EOD
<br><hr><br>
Username: $nickname <br>
Email: $email <br>
Description: $describe <br>
Footage o,r Digital: $footage <br>
Budget: $budget <br>
Time Slot: $time <br>
Paypal: $paypal <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers); ini_set(25,25)


/* Results rendered as HTML */

$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=http://YOUR WEBSITE ADDRESS/contact.html">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fec001;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}

-->
</style>
</head>
<div align="center">Your email will be answered soon as possible!
You will return to Classic Bikes in a few seconds !</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>


line 40 is:

$theResults = <<<EOD

HELP!!

Guttorm 08-25-2009 10:49 AM

ini_set(25,25) needs a ; after it. Also it doesn't make any sense. What where you trying to accomplish by it?

hiddenmirageads 08-25-2009 01:32 PM

ini
 
yeah that was a mistake. added that in at last second because the error said i should try putting in the ini thing and dreamweaver siad i needed two values for my port. that got rid of an error but caused a new one.

graemef 08-25-2009 09:39 PM

Quote:

Originally Posted by hiddenmirageads (Post 3657112)
yeah that was a mistake. added that in at last second because the error said i should try putting in the ini thing and dreamweaver siad i needed two values for my port. that got rid of an error but caused a new one.

Can you state exactly what the error is?
Also as previously requested please use code blocks (or php blocks) to show your code.


All times are GMT -5. The time now is 12:36 PM.