logo
Published on Code2Design (http://code2design.com)

Unexpected PHP Error?

By kab012345
Created Feb 16 2008 - 6:12pm

Can anyone tell me what's wrong with this code? I'm trying to make a custom page for a forum software called AEF. Here is the clan_theme.php file.

<?php


   
if(isset($_POST['position'] && $_POST['name'] && $_POST['aa_name'] && $_POST['honor'] && $_POST['age'] && $_POST['contact']
    && 
$_POST['games'] && $_POST['describe'] && $_POST['member'])){
    echo 
'<tr>
    <td class="ucpflc" align="left" colspan="2">
<center><b>Your clan application has been dispatched to the Officers with the information you have entered.<b></center>
   
    </td>
    </tr>'
;

   
$subject='Clan Application FOR: '$_REQUEST['position'];
   
$application = array('Name' => $_REQUEST['name'],
                       
'AA Name' => $_REQUEST['aa_name'],
                       
'Honor' => $_REQUEST['honor'],
                       
'Age' => $_REQUEST['age'],
                       
'Contact Email' => $_REQUEST['contact'],
                       
'Other Games Played' => $_REQUEST['games'],
                       
'Desciption' => $_REQUEST['descibe'],
                       
'Reffering Member' => $_REQUEST['member']);   
   
   
$from="From: ".$user['username'];
   
mail($adminmail,$subject"Requested Name: ".$application['Name']"Position: ".$application['position'] .
   
"Current AA Name: " $application['aa_name']"Age: ".$application['age'] .,$from);
    }

   
?>

I used \n after each variable I called in the array in the email body.

I always an error similar to this:

Quote:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\VertrigoServ\www\clan.php on line 40

‹ PHP + XML Socket Server [0] Ordering Infromation Using MySQL › [0]

Source URL:
http://code2design.com/forums/unexpected_php_error