-
PHP Help
Hey, I need help with this form. I get this error when I go to submit.
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/habiz/public_html/en/postit.php on line 35
This is the code
Code:
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$habbo = $_POST['habbo'];
$djname = $_POST['djname'];
$email = $_POST['email'];
$djpuser = $_POST['djpuser'];
$djppass = $_POST['djppass'];
$wudj = $_POST['wudj'];
$linkies = $_POST['linkies'];
$why = $_POST['why'];
$special = $_POST['special'];
$anything = $_POST['anything'];
$ip = $_POST['ip'];
$messig = "
Habbo Name: $habbo
DJ Name: $djname
Email: $email
DJ Panel User: $djpuser
DJ Panel Pass: $djppass
Experience: $wudj
Link to Clip: $linkies
Why choose you: $why
Special Abilities: $special
Anything we should know: $anything
This form was made by PogoMonkey
";
$subject = $habbo 's Job Application;
mail([email protected], $subject, $messig);
Header("Location: sent.php");
}
else
{
echo 'ERROR';
}
?>
Anybody care to explain where I have went wrong?
Thanks.
-
Ok change: $subject = $habbo 's Job Application;
To:
PHP Code:
$subject = $habbos . " 's Job Application";
-
Now I get this :
Parse error: parse error, unexpected '@' in /home/habiz/public_html/en/postit.php on line 28
Code:
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$habbo = $_POST['habbo'];
$djname = $_POST['djname'];
$email = $_POST['email'];
$djpuser = $_POST['djpuser'];
$djppass = $_POST['djppass'];
$wudj = $_POST['wudj'];
$linkies = $_POST['linkies'];
$why = $_POST['why'];
$special = $_POST['special'];
$anything = $_POST['anything'];
$ip = $_POST['ip'];
$messig = "
Habbo Name: $habbo
DJ Name: $djname
Email: $email
DJ Panel User: $djpuser
DJ Panel Pass: $djppass
Experience: $wudj
Link to Clip: $linkies
Why choose you: $why
Special Abilities: $special
Anything we should know: $anything
This form was made by PogoMonkey
";
$subject = $habbos . " 's Job Application";
mail([email protected], $subject, $messig);
Header("Location: sent.php");
}
else
{
echo 'ERROR';
}
?>
-
You do know it has 'mail([email protected], $subject, $messig);' in it ?
-
and thats wrong? I am very inexperinced at PHP.
My mate made it, and its not working. Anybody mind fixing it up than?
-
You need to change: mail([email protected], $subject, $messig);
to:
mail("[email protected]", $subject, $messig);
-
Hey
Why dont you use the one of ThyBag ?
Link: http://thybag.co.uk/index.php?p=Tutorials&ind=2
- Adam
-
Thanks, form is fixed :P +rep.
-
:D
$subject = "$habbo 's Job Application";