ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
i am using wampserver with php version 5.3.0 i am getting this error in my php.
Parse error: parse error in C:\wamp\www\contactform.php on line 16
and i cant figure out what is wrong with my scripting.
the code is...
<?php
$to = "hiddenmirageads@gmail.com";
$subject = "New Special Effects";
$body = "New Form Request!
Nickname: ".$_POST['username']."
Email: ".$_POST['Email']."
Description of effect: ".$_POST['Describe']."
Provide Footage: ".$_POST['footage']."
Length of video to edit: ".$_POST['Timeofvideo']."
Price range: ".$_POST['checkbox']."
Time range: ".$_POST['Time']."
Paypal: ".$_POST['Paypal'].""
mail($to,$subject,$body)
?>
line 16 is the mail line. someone please tell me what is going wrong.
line 16 is the mail line. someone please tell me what is going wrong.
You are missing the semicolon at the end of the line.
You seem to be missing the semicolon at the end of your definition of $body, also . . . and you might want to slash out all of those double quotes that do not denote the beginning or end of strings.
Code:
<?php
$to = "hiddenmirageads@gmail.com";
$subject = "New Special Effects";
$body = "New Form Request!
Nickname: \".$_POST['username'].\"
Email: \".$_POST['Email'].\"
Description of effect: \".$_POST['Describe'].\"
Provide Footage: \".$_POST['footage'].\"
Length of video to edit: \".$_POST['Timeofvideo'].\"
Price range: \".$_POST['checkbox'].\"
Time range: ".$_POST['Time']."
Paypal: \".$_POST['Paypal'].\"";
mail($to,$subject,$body);
?>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.