</div> <!-- End of Content --> <?php /*get the values from the form and send them to the service to add values.*/ if (isset($_POST['Submit'])) { $name = $_POST['event']; $start_time = $_POST['start_time']; $end_time = $_POST['end_time']; $description = $_POST['description']; $event = new Event(); $event->name = $name; $event->startDateTime = $start_time; $event->endDateTime = $end_time; $event->description = $description; $client = new CalendarClient($username, $password); $returnMessage = $client->addEvent($event); print_r($returnMessage); } ?> <br> <br> <a href="get_event_client.php">Back to the calender</a> </body> </html>
</fieldset> </form> </div> <!-- End of Content --> <?php /*get the values from the form and send them to the service to add values.*/ if (isset($_POST['Submit'])) { $name = $_POST['event']; $start_time = $_POST['start_time']; $end_time = $_POST['end_time']; $description = $_POST['description']; $obj = new Event($name, $start_time, $end_time, $description); $client = new CalendarClient("Amal", "aaa"); $returnMessage = $client->addEvent($obj); print_r($returnMessage); } ?> <br> <br> <a href="get_event_client.php">Back to the calender</a> </body> </html>