Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/435.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将数据从一个表发送到另一页_Php_Javascript_Jquery_Html - Fatal编程技术网

Php 将数据从一个表发送到另一页

Php 将数据从一个表发送到另一页,php,javascript,jquery,html,Php,Javascript,Jquery,Html,我有这个我想要的表格当我点击表格行中的一个链接,重定向到另一个页面时,数据将被发送到新页面,这可以帮助我找到如何启动的方法 我真的卡住了 代码表 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>Date</th> <th

我有这个我想要的表格当我点击表格行中的一个链接,重定向到另一个页面时,数据将被发送到新页面,这可以帮助我找到如何启动的方法

我真的卡住了 代码表

<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
    <tr>            


        <th>Date</th>
        <th>provider</th>
        <th>CI</th>
        <th>CELL</th>
        <th>BSC</th>
        <th>Commentaire</th>
        <th>nbr</th>
        <th>Type</th>
        <th><img src="{{ asset('image/Modify.png') }}" ALIGN="CENTER"/></th>
        <th><img src="{{ asset('image/Info.png') }}" ALIGN="CENTER"/></th>
        <th><img src="{{ asset('image/Male.png') }}" ALIGN="CENTER"/></th>
        <th>type_alertes</th>




    </tr>
</thead>
<tbody>




         <div class="textbox">
        <h2> Information KPI dégradées</h2>

            <div class="textbox_content" id="kpi_dégrades">
 {% for liste in listes %}

    <tr class="gradeU">
    <td>{{ liste.DAT }} </td>
    <td>{{ liste.PROVIDER}} </td>
    <td>{{ liste.CI}} </td>
    <td>{{ liste.CELL}} </td>
    <td>{{ liste.BSC}}</td>
    <td>{{ liste.Cmts}}</td>
    <td >{{ liste.nbr}}</td>
    <td>{{ liste.TYPE}}</td>
    <td><a class="edit" href="">Edit</a></td>
    <td onclick="getInfo('{{ liste.CELL}}')">Information KPI dégradés</td>
    <td>{{ liste.user_name}}</td>
    <td>{{ liste.type_alertes}}</td>



</tr>


{% endfor %}
        </div>
        </div>

</tbody>

日期
供应商
词
细胞
理学士
评论
丁腈橡胶
类型
类型_警报
信息KPI dégradeées
{列表%中的列表的%s}
{{liste.DAT}
{{liste.PROVIDER}}
{{liste.CI}
{{liste.CELL}
{{liste.BSC}
{{liste.Cmts}
{{liste.nbr}
{{liste.TYPE}
信息KPI dégradés
{{liste.user_name}
{{liste.type_alertes}
{%endfor%}

使用变量查找rowID


在主表中,每行都有一个链接

您可以在下一页上使用隐藏字段来存储下一页上的数据。

使用
有什么问题吗?使用
href=“your other page.php?rowID=XXX”
?此处需要javascript/Jquery添加
,不要使用
a
标记,而是使用
onclick
事件调用获取所需数据并将其提交给php的函数script@Naryl当HTML或CSS可用时,切勿使用JavaScript。你永远不知道用户何时会禁用JS。是的,我们不知道他是否需要用户名和ID,用户在输入中键入的内容,或者你在编写href:S时没有的其他内容
<tr onclick="window.location="newPageLocation?value = this.innerHTML">  
    <th>Date</th>
    <th>provider</th>
    <th>CI</th>
    <th>CELL</th>
    <th>BSC</th>
    <th>Commentaire</th>
    <th>nbr</th>
    <th>Type</th>
    <th><img src="{{ asset('image/Modify.png') }}" ALIGN="CENTER"/></th>
    <th><img src="{{ asset('image/Info.png') }}" ALIGN="CENTER"/></th>
    <th><img src="{{ asset('image/Male.png') }}" ALIGN="CENTER"/></th>
    <th>type_alertes</th>