LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Tags used in this thread
Popular LQ Tags , , , , , , , , ,

Reply
 
Thread Tools
Old 08-25-2009, 10:45 AM   #1
hiddenmirageads
LQ Newbie
 
Registered: Aug 2009
Posts: 3
Thanked: 0
Another PHP parse error


[Log in to get rid of this advertisement]
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!!
windows_vista hiddenmirageads is offline  
Tag This Post , , , , , , , , ,
Reply With Quote
Old 08-25-2009, 11:49 AM   #2
Guttorm
Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 599
Thanked: 32
ini_set(25,25) needs a ; after it. Also it doesn't make any sense. What where you trying to accomplish by it?
linuxubuntu Guttorm is offline     Reply With Quote
Old 08-25-2009, 02:32 PM   #3
hiddenmirageads
LQ Newbie
 
Registered: Aug 2009
Posts: 3
Thanked: 0

Original Poster
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.
windows_vista hiddenmirageads is offline     Reply With Quote
Old 08-25-2009, 10:39 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 11
Posts: 1,860
Thanked: 26
Quote:
Originally Posted by hiddenmirageads View Post
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.
linuxfedora graemef is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Parse Error!! hiddenmirageads Programming 2 08-25-2009 06:59 AM
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 01:34 PM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 09:26 PM
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 06:08 AM
php parse error wujimon Linux - Software 4 03-26-2003 03:37 PM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration