When i put some big data like html tags and messages, the session fails, i've tried to use the database but i still get the same error
$this->session->set_flashdata('message', '
<p class="center">Article added successfully</p>
<p class="center"><a href="/admin/item/add">some other message</a></p>
');
how to fix this?
您应该这样删除标记之间的空白
$this->session->set_flashdata('message', '<p class="center">Article added successfully</p><p class="center"><a href="/admin/item/add">some other message</a></p>');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.