dsgw8802 2017-11-04 20:23
浏览 41

连接到2个php页面的链接[重复]

This question already has an answer here:

I'm trying to make an link that when clicked redirects to a php page called din.php and makes use of another php page called coleta2 to put some data inside a table in database. I tried to put coleta2 as a value in the href but didn't work, tried to put as two <a> tags but also didn't work, any ideas to do this? The coleta2.php don't have any html is just an if that puts the data.

<a href="din.php?tipo=1&tab=tb_locaisac" class="fund" value="coleta2.php?tipo=1&estado=ac">Locais turisticos de Rio Branco</a></a>

I get this error:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\wamp64\www ovo\logado\locais\din.php:160) in C:\wamp64\www ovo\logado\locais\coleta2.php on line 2

</div>
  • 写回答

1条回答 默认 最新

  • dppb79372 2017-11-04 20:28
    关注

    Use PHP'S include method above the doctype.

    Do as so: include('coleta2');

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行