Jump to content

Recommended Posts

The line of code you posted out of context does not produce that error (tested). I put that line into a valid class definition/method definition and that line is syntactically correct.

 

Something prior to that is causing the error.

function send($loggedEmail,$subject,$message,$recipientID)

{

$this->subject = $subject;

$this->message = $message;

 

echo "s".$this->subject;

echo "m".$this->message;

 

if( ($this->subject == "") || ($this->message == "") ){

echo "apps";

}

 

}

 

 

if( isset($_POST['sendForm']) ){

$message->send($_POST['email'],$_POST['subject'],$_POST['message'],$recipient->id);

}

 

class message

{

 

var $recipientID; //id of member message is being sent to

var $errorCount; // how many errors have been found

var $error = array(); // array of he errors found

var $subject; // subject of the message

var $message; //the message that is being sent

 

function __construct()

{

$errorCount = 0;

}

 

function send($loggedEmail,$subj ... ... .. ...

it would help if you would 1. post all relevant code so we can count lines to the error line and work backwards, and 2. post the complete error, including error line number. without more information we can only guess, which is a terrible way to debug.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.