我想将值填充到html标签bij php网址帖子中原始代码是
<div class="addevent" data-event='{
"title":"Appointment titel",
"start":"2020/01/25 10:00",
"end":"2020/01/25 12:00",
"desc":"Description of appointment",
"location":"somewhere"
}'>
我尝试过:
"title":<?php $_GET['titel']?>,
我收到了值bij url post<?php $_GET['titel']?>
<?php $_GET['start']?>
等
创建具有所有值的PHP数组,并使用json_encode()
将其转换为data-event
属性的JSON。