<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <form action="UpdateRecipe.php" method="post" /> <title>Schema Creator</title> </head> <?php function __autoload($class_name) { include $class_name . '.php'; } if (empty($_POST["name"]) && empty($_POST["description"]) && empty($_POST["image"]) && empty($_POST["url"])) { echo 'Please Enter Recipe Information.'; } else { $thing = new Recipe('', '', ''); //As Thing, the super parent class extends Tag. Tag construtor is invoked. echo $thing->UpdateThing("name", $_POST["name"]); //echo $thing->UpdateCreativeWork(); //echo $thing->UpdateRecipe(); echo 'Recipe Updated Successfully.'; } ?> <body> <div style="border-style:outset; width: 450px" align="left"> <h2 align="center" style="color:red">Update Recipe</h2> <h5 style="color: red"><h5> <?php $recipe = new Recipe(); $form = new FormGenerator(); $form->generate($recipe); ?> <input type="submit" name="Check" title="Check" value="Update Recipe" >
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <form action="UpdateRecipe.php" method="post" /> <title>Schema Creator</title> </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('', '', ''); //As Thing, the super parent class extends Tag. Tag construtor is invoked. echo $thing->UpdateThing("name", $_POST["RecipeName"]); //echo $thing->UpdateCreativeWork(); //echo $thing->UpdateRecipe(); echo 'Recipe Updated Successfully.'; } ?> <body> <div style="border-style:outset; width: 450px" align="left"> <h2 align="center" style="color:red">Update 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> </tr> <tr align="center">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Schema Creator</title> </head> <?php function __autoload($class_name) { include $class_name . '.php'; } echo 'Welcome'; $thing = new Recipe('', '', ''); //As Thing, the super parent class extends Tag. Tag construtor is invoked. /* Update the existing recipe record Coffee */ $newdata = array('$set' => array("name" => "Instant-Coffee")); echo $thing->UpdateThing(array("name" => "Coffee"), $newdata); //echo $thing->UpdateCreativeWork(array("name" => "Coffee"), $newdata); //echo $thing->UpdateRecipe(array("name" => "Coffee"), $newdata); ?> </body> </form> </html>