Parse error: syntax error, unexpected T_VARIABLE | Newbie | | Join Date: Oct 2008
Posts: 11
| |
I have just finshed my first php code and posted it online and I am getting a Parse error: syntax error, unexpected T_VARIABLE in /home/hydeands/public_html/phpmail.php on line 45
But when I look at it it looks ok.
. I am just creating a php for a online form to direct the email.
Here is the code. - <?php
-
$emailsubject = 'Judgement Recovery Application' ;
-
$web = 'mwcinvestigation@example.net' ;
-
-
-
-
$casenumberField = $_POST{'Case number'};
-
$amountField = $_POST{'Amount of judgment:'};
-
$collectedField = $_POST{'Amount collected to date:'};
-
$stateField = $_POST{'State judgment issued:'};
-
$attnField = $_POST{'Represented by attorney:'};
-
$defaultField = $_POST{'Awarded by default:'};
-
$dstateField = $_POST{'JD reside in different state:'};
-
$namejdField = $_POST{'Name of JD:'};
-
$addjdField = $_POST{'JD street address:'};
-
$cityjdField = $_POST{'JD city, state, zip:'};
-
$namejcField = $_POST{'JCsName'};
-
$addjcField = $_POST{'JCsAddress'};
-
$cityjcField = $_POST{'JCsCity'};
-
$phoneField = $_POST{'JCsPhone'};
-
$emailjcField = $_POST{'JCsEmail'};
-
$descrpField = $_POST{'Description'};
-
$judgeField = $_POST{'Judgment'};
-
-
$body = <<<EOD
-
<br><hr><br>
-
Email: $casenumber <br>
-
Amount: $amount <br>
-
Collected: $collected <br>
-
State of Judgement: $state <br>
-
Attorney: $attn <br>
-
Award by Default: $default <br>
-
JD Reside Diffent State: $dstate <br>
-
Name: $namejd <br>
-
Address: $addjd <br>
-
City: $cityjd <br>
-
Phone: $phone <br>
-
Email: $emailjc <br>
-
Description: $descrp <br>
-
Judgement: $judge <br>
-
EOD
-
-
-
-
$headers = "From:emailjcField\r\n";
-
$headers .= "Content-type: text/html\r\n";
-
$success = mail($web, $emailsubject, $body, $headers);
-
-
-
-
$theResults = <<<EOD
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Refresh" content="5; url=http://www.example.com/home.html">
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<title>Thank you From Hyde & Seik Investigations</title>
-
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript">
-
<style type="text/css">
-
<!--
-
body {
-
background-image: url(images/bg.jpg);
-
}
-
.style7 {
-
color: #FFFFFF;
-
font-weight: bold;
-
font-size: 18px;
-
}
-
.style13 {font-family: Broadway}
-
.style15 {font-size: xx-large}
-
-->
-
</style></head>
-
-
<body>
-
-
<div align="center"></div>
-
<h1 align="center" class="style7"><span class="style15"><span class="style13">Hyde & Seik</span>®</span><span class="style15"> Thanks you for your application and we will be in contact with you soon.</span></h1>
-
<p align="center"> </p>
-
<p align="center"> </p>
-
</body>
-
</html>
-
EOD;
-
echo "$theResults";
-
-
-
-
?>
-
-
Thank you for your help
|  | Moderator | | Join Date: Jun 2007 Location: York, England, with wolves.
Posts: 4,948
| | | re: Parse error: syntax error, unexpected T_VARIABLE
Line 41 needs a semi-colon,
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE
Thank you
Now I am getting the email but the fields are blank. Is that this code or the html code?
Thank you
|  | Moderator | | Join Date: Jun 2007 Location: York, England, with wolves.
Posts: 4,948
| | | re: Parse error: syntax error, unexpected T_VARIABLE
What fields?
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by Markus What fields? All of the fields end up blank in the email
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE
Email:
Amount:
Collected:
State of Judgement:
Attorney:
Award by Default:
JD Reside Diffent State:
Name:
Address:
City:
Phone:
Email:
Description:
Judgement:
This is all I get in my email not the information filled out by customers.
Maybe fields is the wrong word, Sorry
Thank you
| | Lives Here | | Join Date: Sep 2006
Posts: 12,070
| | | re: Parse error: syntax error, unexpected T_VARIABLE
The names of your POST variables look funny e.g 'Amount of judgment:'.
Try using variable names without spaces.
|  | Moderator | | Join Date: Jun 2007 Location: York, England, with wolves.
Posts: 4,948
| | | re: Parse error: syntax error, unexpected T_VARIABLE
I don't see the variables in your EOD set anywhere.
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE
I thougght that the varibles were set in lines 27 to 40. Did I not do them correctly?
Email: $casenumber
Thank you
| | Member | | Join Date: Mar 2008
Posts: 60
| | | re: Parse error: syntax error, unexpected T_VARIABLE
I'm going to agree. Try removing the spaces and see what happens.
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE
removed all the spaces and still I get the names of fields but not information that was filled out online.
|  | Moderator | | Join Date: Jun 2007 Location: York, England, with wolves.
Posts: 4,948
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by URmusicandvideo I thougght that the varibles were set in lines 27 to 40. Did I not do them correctly?
Email: $casenumber
Thank you But where is $casenumber declared? I don't see that.
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by Markus But where is $casenumber declared? I don't see that. Isn't that in line 7??
Thank you sir
I did change the spaces out of the titles. here is the new code - <?php
-
$emailsubject = 'Judgement Recovery Application' ;
-
$web = '337@urmusicandvideo.com' ;
-
-
-
-
$casenumberField = $_POST['Casenu'];
-
$amountField = $_POST['Amountofjudgment'];
-
$collectedField = $_POST['Amountcollected'];
-
$stateField = $_POST['Statejudgment'];
-
$attnField = $_POST['Represented'];
-
$defaultField = $_POST['Awardeddefault'];
-
$dstateField = $_POST['dstate'];
-
$namejdField = $_POST['JD'];
-
$addjdField = $_POST['JDaddress'];
-
$cityjdField = $_POST['JDcity'];
-
$namejcField = $_POST['JCsName'];
-
$addjcField = $_POST['JCsAddress'];
-
$cityjcField = $_POST['JCsCity'];
-
$phoneField = $_POST['JCsPhone'];
-
$emailjcField = $_POST['JCsEmail'];
-
$descrpField = $_POST['Description'];
-
$judgeField = $_POST['Judgment'];
-
-
$body = <<<EOD
-
<br><hr><br>
-
Case Number: $casenumber <br>
-
Amount: $amount <br>
-
Collected: $collected <br>
-
State of Judgement: $state <br>
-
Attorney: $attn <br>
-
Award by Default: $default <br>
-
JD Reside Diffent State: $dstate <br>
-
Name: $namejd <br>
-
Address: $addjd <br>
-
City: $cityjd <br>
-
Phone: $phone <br>
-
Email: $emailjc <br>
-
Description: $descrp <br>
-
Judgement: $judge <br>
-
EOD;
-
-
-
-
$headers = "From:emailjcField\r\n";
-
$headers .= "Content-type: text/html\n\n";
-
$success = mail($web, $emailsubject, $body, $headers);
-
-
-
-
$theResults = <<<EOD
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Refresh" content="5; url=http://www.hydeandseik.com/home.html">
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<title>Thank you From Hyde & Seik Investigations</title>
-
-
<style type="text/css">
-
<!--
-
body {
-
background-image: url(images/bg.jpg);
-
}
-
.style7 {
-
color: #FFFFFF;
-
font-weight: bold;
-
font-size: 18px;
-
}
-
.style13 {font-family: Broadway}
-
.style15 {font-size: xx-large}
-
-->
-
</style></head>
-
-
<body>
-
-
<div align="center"></div>
-
<h1 align="center" class="style7"><span class="style15"><span class="style13">Hyde & Seik</span>®</span><span class="style15"> Thanks you for your application and we will be in contact with you soon.</span></h1>
-
<p align="center"> </p>
-
<p align="center"> </p>
-
</body>
-
</html>
-
EOD;
-
echo "$theResults";
-
-
-
-
?>
| | Lives Here | | Join Date: Sep 2006
Posts: 12,070
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by URmusicandvideo Isn't that in line 7??
Thank you sir How about removing those spaces in the variable names? What does the html file that sends them look like?
| | Member | | Join Date: Mar 2008
Posts: 60
| | | re: Parse error: syntax error, unexpected T_VARIABLE
You're posting the information, but you're not requesting it once the email is sent.
Try this:
[PHP]
$casenumberField = $_POST{'Case number'};
$amountField = $_POST{'Amount of judgment:'};
$collectedField = $_POST{'Amount collected to date:'};
$stateField = $_POST{'State judgment issued:'};
$attnField = $_POST{'Represented by attorney:'};
$defaultField = $_POST{'Awarded by default:'};
$dstateField = $_POST{'JD reside in different state:'};
$namejdField = $_POST{'Name of JD:'};
$addjdField = $_POST{'JD street address:'};
$cityjdField = $_POST{'JD city, state, zip:'};
$namejcField = $_POST{'JCsName'};
$addjcField = $_POST{'JCsAddress'};
$cityjcField = $_POST{'JCsCity'};
$phoneField = $_POST{'JCsPhone'};
$emailjcField = $_POST{'JCsEmail'};
$descrpField = $_POST{'Description'};
$judgeField = $_POST{'Judgment'};
$body = <<<EOD
<br><hr><br>
$email = "\n Email: ";
$email .= $_REQUEST['casenumber'] ;
$amounte = "\n Amount: ";
$amounte .= $_REQUEST['amount'] ;
And so on....
[/PHP]
|  | Moderator | | Join Date: Jun 2007 Location: York, England, with wolves.
Posts: 4,948
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by URmusicandvideo Isn't that in line 7??
Thank you sir
I did change the spaces out of the titles. here is the new code - <?php
-
$emailsubject = 'Judgement Recovery Application' ;
-
$web = '337@urmusicandvideo.com' ;
-
-
-
-
$casenumberField = $_POST['Casenu'];
-
$amountField = $_POST['Amountofjudgment'];
-
$collectedField = $_POST['Amountcollected'];
-
$stateField = $_POST['Statejudgment'];
-
$attnField = $_POST['Represented'];
-
$defaultField = $_POST['Awardeddefault'];
-
$dstateField = $_POST['dstate'];
-
$namejdField = $_POST['JD'];
-
$addjdField = $_POST['JDaddress'];
-
$cityjdField = $_POST['JDcity'];
-
$namejcField = $_POST['JCsName'];
-
$addjcField = $_POST['JCsAddress'];
-
$cityjcField = $_POST['JCsCity'];
-
$phoneField = $_POST['JCsPhone'];
-
$emailjcField = $_POST['JCsEmail'];
-
$descrpField = $_POST['Description'];
-
$judgeField = $_POST['Judgment'];
-
-
$body = <<<EOD
-
<br><hr><br>
-
Case Number: $casenumber <br>
-
Amount: $amount <br>
-
Collected: $collected <br>
-
State of Judgement: $state <br>
-
Attorney: $attn <br>
-
Award by Default: $default <br>
-
JD Reside Diffent State: $dstate <br>
-
Name: $namejd <br>
-
Address: $addjd <br>
-
City: $cityjd <br>
-
Phone: $phone <br>
-
Email: $emailjc <br>
-
Description: $descrp <br>
-
Judgement: $judge <br>
-
EOD;
-
-
-
-
$headers = "From:emailjcField\r\n";
-
$headers .= "Content-type: text/html\n\n";
-
$success = mail($web, $emailsubject, $body, $headers);
-
-
-
-
$theResults = <<<EOD
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Refresh" content="5; url=http://www.hydeandseik.com/home.html">
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<title>Thank you From Hyde & Seik Investigations</title>
-
-
<style type="text/css">
-
<!--
-
body {
-
background-image: url(images/bg.jpg);
-
}
-
.style7 {
-
color: #FFFFFF;
-
font-weight: bold;
-
font-size: 18px;
-
}
-
.style13 {font-family: Broadway}
-
.style15 {font-size: xx-large}
-
-->
-
</style></head>
-
-
<body>
-
-
<div align="center"></div>
-
<h1 align="center" class="style7"><span class="style15"><span class="style13">Hyde & Seik</span>®</span><span class="style15"> Thanks you for your application and we will be in contact with you soon.</span></h1>
-
<p align="center"> </p>
-
<p align="center"> </p>
-
</body>
-
</html>
-
EOD;
-
echo "$theResults";
-
-
-
-
?>
No, you declare $casenumberFiled which is not the same as $casenumber
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by Markus No, you declare $casenumberFiled which is not the same as $casenumber Ok
I changed all of those. - <?php
-
$emailsubject = 'Judgement Recovery Application' ;
-
$web = '337@urmusicandvideo.com' ;
-
-
-
-
$casenumberField = $_POST['Casenu'];
-
$amountField = $_POST['Amountofjudgment'];
-
$collectedField = $_POST['Amountcollected'];
-
$stateField = $_POST['Statejudgment'];
-
$attnField = $_POST['Represented'];
-
$defaultField = $_POST['Awardeddefault'];
-
$dstateField = $_POST['dstate'];
-
$namejdField = $_POST['JD'];
-
$addjdField = $_POST['JDaddress'];
-
$cityjdField = $_POST['JDcity'];
-
$namejcField = $_POST['JCsName'];
-
$addjcField = $_POST['JCsAddress'];
-
$cityjcField = $_POST['JCsCity'];
-
$phoneField = $_POST['JCsPhone'];
-
$emailjcField = $_POST['JCsEmail'];
-
$descrpField = $_POST['Description'];
-
$judgeField = $_POST['Judgment'];
-
-
$body = <<<EOD
-
<br><hr><br>
-
Case Number: $casenumberField <br>
-
Amount: $amountField <br>
-
Collected: $collectedField <br>
-
State of Judgement: $stateField <br>
-
Attorney: $attnField <br>
-
Award by Default: $defaultField <br>
-
JD Reside Diffent State: $dstateField <br>
-
Name: $namejdField <br>
-
Address: $addjdField <br>
-
City: $cityjdField <br>
-
Phone: $phoneField <br>
-
Email: $emailjcField <br>
-
Description: $descrpField <br>
-
Judgement: $judgeField <br>
-
EOD;
-
-
-
-
$headers = "From:emailjcField\r\n";
-
$headers .= "Content-type: text/html\n\n";
-
$success = mail($web, $emailsubject, $body, $headers);
-
-
-
-
$theResults = <<<EOD
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Refresh" content="5; url=http://www.hydeandseik.com/home.html">
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<title>Thank you From Hyde & Seik Investigations</title>
-
-
<style type="text/css">
-
<!--
-
body {
-
background-image: url(images/bg.jpg);
-
}
-
.style7 {
-
color: #FFFFFF;
-
font-weight: bold;
-
font-size: 18px;
-
}
-
.style13 {font-family: Broadway}
-
.style15 {font-size: xx-large}
-
-->
-
</style></head>
-
-
<body>
-
-
<div align="center"></div>
-
<h1 align="center" class="style7"><span class="style15"><span class="style13">Hyde & Seik</span>®</span><span class="style15"> Thanks you for your application and we will be in contact with you soon.</span></h1>
-
<p align="center"> </p>
-
<p align="center"> </p>
-
</body>
-
</html>
-
EOD;
-
echo "$theResults";
-
-
-
-
?>
-
and still this is what I am getting in my email:
--------------------------------------------------------------------------------
Case Number:
Amount:
Collected:
State of Judgement:
Attorney:
Award by Default:
JD Reside Diffent State:
Name:
Address:
City:
Phone:
Email:
Description
| | Member | | Join Date: Mar 2008
Posts: 60
| | | re: Parse error: syntax error, unexpected T_VARIABLE
[PHP]
Case Number: $_REQUEST['casenumberField'] ;
\n Amount: $_REQUEST['amountField'] ;
\n Collected: $_REQUEST['collectedField'] ;
\n State of Judgement: $_REQUEST['stateField'] ;
\n Attorney: $_REQUEST['attnField'] ;
\n Award by Default: $_REQUEST['defaultField'] ;
\n JD Reside Diffent State: $_REQUEST['dstateField'] ;
\n Name: $_REQUEST['namejdField'] ;
\n Address: $_REQUEST['addjdField'] ;
\n City: $_REQUEST['cityjdField'] ;
\n Phone: $_REQUEST['phoneField'] ;
\n Email: $_REQUEST['emailjcField'] ;
\n Description: $_REQUEST['descrpField'] ;
\n Judgement: $_REQUEST['judgeField'] ;
[/PHP]
Try that. :)
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by AutumnsDecay [PHP]
Case Number: $_REQUEST['casenumberField'] ;
\n Amount: $_REQUEST['amountField'] ;
\n Collected: $_REQUEST['collectedField'] ;
\n State of Judgement: $_REQUEST['stateField'] ;
\n Attorney: $_REQUEST['attnField'] ;
\n Award by Default: $_REQUEST['defaultField'] ;
\n JD Reside Diffent State: $_REQUEST['dstateField'] ;
\n Name: $_REQUEST['namejdField'] ;
\n Address: $_REQUEST['addjdField'] ;
\n City: $_REQUEST['cityjdField'] ;
\n Phone: $_REQUEST['phoneField'] ;
\n Email: $_REQUEST['emailjcField'] ;
\n Description: $_REQUEST['descrpField'] ;
\n Judgement: $_REQUEST['judgeField'] ;
[/PHP]
Try that. :) Where do I put it? line 27 to 40?
Thank you
| | Member | | Join Date: Mar 2008
Posts: 60
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by URmusicandvideo Where do I put it? line 27 to 40?
Thank you That's exactly where you would put it.
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by URmusicandvideo Where do I put it? line 27 to 40?
Thank you OK I did it and I get this error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/hydeands/public_html/phpmail.php on line 27
Here is the new code too - <?php
-
$emailsubject = 'Judgement Recovery Application' ;
-
$web = '337@urmusicandvideo.com' ;
-
-
-
-
$casenumberField = $_POST['Casenu'];
-
$amountField = $_POST['Amountofjudgment'];
-
$collectedField = $_POST['Amountcollected'];
-
$stateField = $_POST['Statejudgment'];
-
$attnField = $_POST['Represented'];
-
$defaultField = $_POST['Awardeddefault'];
-
$dstateField = $_POST['dstate'];
-
$namejdField = $_POST['JD'];
-
$addjdField = $_POST['JDaddress'];
-
$cityjdField = $_POST['JDcity'];
-
$namejcField = $_POST['JCsName'];
-
$addjcField = $_POST['JCsAddress'];
-
$cityjcField = $_POST['JCsCity'];
-
$phoneField = $_POST['JCsPhone'];
-
$emailjcField = $_POST['JCsEmail'];
-
$descrpField = $_POST['Description'];
-
$judgeField = $_POST['Judgment'];
-
-
$body = <<<EOD
-
<br><hr><br>
-
Case Number: $_REQUEST['casenumberField'] ;
-
\n Amount: $_REQUEST['amountField'] ;
-
\n Collected: $_REQUEST['collectedField'] ;
-
\n State of Judgement: $_REQUEST['stateField'] ;
-
\n Attorney: $_REQUEST['attnField'] ;
-
\n Award by Default: $_REQUEST['defaultField'] ;
-
\n JD Reside Diffent State: $_REQUEST['dstateField'] ;
-
\n Name: $_REQUEST['namejdField'] ;
-
\n Address: $_REQUEST['addjdField'] ;
-
\n City: $_REQUEST['cityjdField'] ;
-
\n Phone: $_REQUEST['phoneField'] ;
-
\n Email: $_REQUEST['emailjcField'] ;
-
\n Description: $_REQUEST['descrpField'] ;
-
\n Judgement: $_REQUEST['judgeField'] ;
-
EOD;
-
-
-
-
$headers = "From:emailjcField\r\n";
-
$headers .= "Content-type: text/html\n\n";
-
$success = mail($web, $emailsubject, $body, $headers);
-
-
-
-
$theResults = <<<EOD
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Refresh" content="5; url=http://www.hydeandseik.com/home.html">
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<title>Thank you From Hyde & Seik Investigations</title>
-
-
<style type="text/css">
-
<!--
-
body {
-
background-image: url(images/bg.jpg);
-
}
-
.style7 {
-
color: #FFFFFF;
-
font-weight: bold;
-
font-size: 18px;
-
}
-
.style13 {font-family: Broadway}
-
.style15 {font-size: xx-large}
-
-->
-
</style></head>
-
-
<body>
-
-
<div align="center"></div>
-
<h1 align="center" class="style7"><span class="style15"><span class="style13">Hyde & Seik</span>®</span><span class="style15"> Thanks you for your application and we will be in contact with you soon.</span></h1>
-
<p align="center"> </p>
-
<p align="center"> </p>
-
</body>
-
</html>
-
EOD;
-
echo "$theResults";
-
-
-
-
?>
-
Thank you for all your help
| | Member | | Join Date: Mar 2008
Posts: 60
| | | re: Parse error: syntax error, unexpected T_VARIABLE
[PHP]
$cn = "\n Case Number: ";
$cn .= $_REQUEST['casenumberField'] ;
$am = "\n Amount: ";
$am .= $_REQUEST['amountField'] ;
$col = "\n Collected: ";
$col .= $_REQUEST['collectedField'] ;
$soj = "\n State of Judgement: ";
$soj .= $_REQUEST['stateField'] ;
$att = "\n Attorney: ";
$att .= $_REQUEST['attnField'] ;
$abd = "\n Award by Default: ";
$abd .= $_REQUEST['defaultField'] ;
$jdr = "\n JD Reside Diffent State: ";
$jdr .= $_REQUEST['dstateField'] ;
$nam = "\n Name: ";
$nam .= $_REQUEST['namejdField'] ;
$addr = "\n Address: ";
$addr .= $_REQUEST['addjdField'] ;
$cit = "\n City: ";
$cit .= $_REQUEST['cityjdField'] ;
$phn = "\n Phone: ";
$phn .= $_REQUEST['phoneField'] ;
$ema = "\n Email: ";
$ema .= $_REQUEST['emailjcField'] ;
$desc = "\n Description: ";
$desc .= $_REQUEST['descrpField'] ;
$jumt = "\n Judgement: ";
$jumt .= $_REQUEST['judgeField'] ;
[/PHP]
Try that. If it doesn't work, I don't know what to tell you.
|  | Moderator | | Join Date: Jun 2007 Location: York, England, with wolves.
Posts: 4,948
| | | re: Parse error: syntax error, unexpected T_VARIABLE
This is dragging.
Do this at the top of that file -
echo '<pre>';
-
print_r($_POST);
-
echo '</pre>';
-
and then show us the results.
and what's the point in using REQUEST? It's slower because it checks COOKIE, GET and POST. If you know where the data is, then use that instead of REQUEST.
| | Member | | Join Date: Mar 2008
Posts: 60
| | | re: Parse error: syntax error, unexpected T_VARIABLE
I use REQUEST on all my mailforms, and I don't notice it being slow at all.
Hopefully your advice helps him out, though.
| | Newbie | | Join Date: Oct 2008
Posts: 11
| | | re: Parse error: syntax error, unexpected T_VARIABLE Quote:
Originally Posted by Markus This is dragging.
Do this at the top of that file -
echo '<pre>';
-
print_r($_POST);
-
echo '</pre>';
-
and then show us the results.
and what's the point in using REQUEST? It's slower because it checks COOKIE, GET and POST. If you know where the data is, then use that instead of REQUEST. I tryed it but now I get this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/hydeands/public_html/phpmail.php on line 33
Here is the code
I am just not sure where to put the three lines you gave me. Did I put them in the right spot?
Thankyou Agian
| | Lives Here | | Join Date: Sep 2006
Posts: 12,070
| | | re: Parse error: syntax error, unexpected T_VARIABLE
Let me ask again. Are you sure that there is an html form which is passing those variables that you are trying to get from $_POST and that those variables are named exactly as you are trying to get them?
|  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,471 network members.
|