PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- class addnews{
- public $author;
- public $title;
- public $short;
- public $full;
- function __construct() {
- $this->author=$_POST['author'];
- $this->title=$_POST['title'];
- $this->short=$_POST['short'];
- $this->full=$_POST['full'];
- }
- }
- }
- ?>