form – PHP Event Calendar https://phpeventcalendar.com Modern Event Calendar For Your Website. Wed, 20 Nov 2024 04:24:11 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 Modify Event Form to Include Additional Data https://phpeventcalendar.com/knowledge-base/modify-event-form-to-include-additional-data/ Wed, 20 Nov 2024 04:21:43 +0000 https://phpeventcalendar.com/?p=1496 To modify event form, follow these steps below to modify the form for customization:

  1. Modify the event form UI file 
    /server/html/event-create.html.php
    to include any additional input one would like to include on the event form. 
  2. Edit event class  
    /server/classes/cls_events.php
     class, in which save and edit event functions as 
    saveEvent()
     and 
    editEvent()
    . Keep in mind that an event data is passed as a simple array.
  3. Those two functions
     saveEvent, editEvent
     are called in 
    /ajax/event_manager.php

  4. Lastly, be sure to modify the database event table to include any additional data.
]]>