【发布时间】:2020-10-24 05:06:11
【问题描述】:
您好,我目前无法弄清楚如何通过 url 将第二个变量传递给 php 文件。
下面是代码
function getmodel()
{
var mod = [];
jQuery('.cells:checked').each(function()
{
mod.push($(this).val());
});
model=mod.toString();
var date = document.getElementById("date").value; // this is the variable that i would like to pass next to the model
urlt='<?php echo base_url();?>excel/export.php?models='+model;
window.location.replace(urlt);
}
所以我设法通过了模型,但我想将日期变量添加到。日期由用户定义。
我应该研究的任何想法或指导,
提前致谢。
【问题讨论】:
标签: php mysql codeigniter codeigniter-3