Пример #1
0
</head>
<?php 
function __autoload($class_name)
{
    include $class_name . '.php';
}
if (empty($_POST["RecipeName"]) && empty($_POST["Description"]) && empty($_POST["ImageName"]) && empty($_POST["URLName"])) {
    echo 'Please Enter Recipe Information.';
} else {
    $thing = new Recipe();
    /*
    echo $thing->PrintThing();
    echo $thing->PrintCreativeWork();
    echo $thing->PrintRecipeWork();
    */
    echo $thing->saveThing();
    echo $thing->saveCreativeWork();
    echo $thing->saveRecipeWork();
    echo 'Recipe Saved Successfully.';
}
?>
<body>
<div style="border-style: outset; width: 450px" align="left">
<h2 align="center" style="color: red">Add Recipe</h2>
<h5 style="color: red">
<h5>
<table width="400" border="0">
<tr>
<td align="right"><strong>Name :</strong></td>
<td align="left"><input id="recipeID" type="text"
name="RecipeName" /></td>