class ManageMarks extends DB{
public function __construct(){
}
public function getData($mark, $url){
$this->mark = $mark;
$this->url = $url;
}
public function validate(){
}
public function saveMark(){
}
}
if(isset($_POST['save'])){
$manageMarks = new ManageMarks;
$manageMarks->getData($_POST['word'], $_POST['link']);
if(!$manageMarks->validate()){
echo 'Not valid data';
}
else{
if(!$manageMarks->saveMark()){
echo 'Data not saved';
}
else{
echo 'Result: success!';
}
}
}
$form = '<form action="" method="POST">'
.'<input type="text" name="word" placeholder="Enter word"/><br/>'
.'<input type="text" name="link" placeholder="Enter URL"/><br/>'
.'<input type="submit" name="save" value="save"/><br/>'
.'</form>';
echo $form;
_____________
HTML, CSS (Bootstrap), JS(JQuery, ExtJS), PHP, MySQL, MSSql, Posgres, (TSql, BI OLAP, MDX), Mongo, Git, SVN, CodeIgnater, Symfony, Yii 2, JiRA, Redmine, Bitbucket, Composer, Rabbit MQ, Amazon (SQS, S3, Transcribe), Docker