i have variables in php I want to sent to a function in javascript my php is like this
if (isset($_POST['acceptbut'])) {
**other code***
$date1 = $vals['date1'];
$date2 = $vals['date2'];
$nme = $vals['nme'];
how would I call the addMyEvent and send those variables, cant seem to find
a way anywhere to send them to the javascript function
}
I got these values from database using a foreach loop