function update_config() { //calls on for the database class include_once "classes/Property.php"; $property = new Property_users(); //sets the properties to store them, use a switch statement to store different description based on different properties $property->set_property("Widget_HelloWorld_greetings", $_POST['Widget_HelloWorld_greetings'], "The Hellow world property description"); }
<?php include_once "../../sessionCheck.php"; include_once "../../classes/Property.php"; $property = new Property_users(); $value = $_POST['greetings']; if (isset($_POST['greetings'])) { $value = $_POST['greetings']; $property->set_property("Widget_HelloWorld__greetings", $value, "Goodbye or Hello?"); }