
Cytat
Parse error: syntax error, unexpected T_VARIABLE in /home/bart/public_html/mailing/mail.class.php on line 5
gdzie 5 linia wskazuje na pierwszy przypisanie w klasienie pisze ze ta klasa jest juz gotowa ale prosze o wskazowki co moze jeszcze nie zadzialac, i czy te 'public' powinienem gdzies powinienem zmienic na inne?
z gory dzieki za pomoc
<?php class site { public $ip = $_SERVER['REMOTE_ADDR']; public $host = $gethostbyaddr($this->ip); public $subject; public $firm; public $name; public $telephone; public $sender; public $receiver; public function validate($attribute) { return false; else return true; } Wiadomosc od: $this->sender Firma: $this->firm Telefon: $this->telephone Imie i nazwisko: $this->name $this->text; IP nadawcy: $this->ip HOST nadawcy: $this->host "); public function $mailto() { if (!(validate($this->subject) && validate($this->firm) && validate($this->name) && validate($this->telephone) && validate($this->sender) && validate($this->receiver))) { } $headers = "MIME-Version: 1.0 rn Content-type: text/html; charset=iso-8859-2 rn From: $this->sender rn"; } } ?>