Saturday, November 23, 2024
HomeWordPress Developmentphp - Execute perform once I click on button

php – Execute perform once I click on button


I want the occasion calendar ICS file downloaded once I click on the button. My code is under:

$start_time = "2021-07-27 11:00";
$end_time = "2021-07-27 11:30";
$title = "Instance Event2";
$description = "<b>Agenda:</b><br><ul><li>Lorem ipsum dolor sit amet is dummy textual content</li><li>Lorem ipsum dolor sit amet is dummy textual content</li><li>Lorem ipsum dolor sit amet is dummy textual content</li></ul>";
$location = "https://meet.google.com/bdf-kxrv-vps";
$occasion = new ICSGenerator($start_time,$end_time,$title,$description,$location);
$event->save();

Now it routinely downloads when I’m open this web page.

This features solely executes once I click on the button. How to do that, can anybody assist?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments