使用定位标记将值传递到另一个php页面 [英] Passing values to another php page using anchor tag

查看:79
本文介绍了使用定位标记将值传递到另一个php页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将PersonID的值从list.php传递到Delete.php. 使用锚标签

I try to pass value of PersonID from list.php to Delete.php. using anchor tag

这是我的代码:

<A HREF = "Delete.php?PID = <?php echo $row['PersonID']; ?>"> Delete </A>

该值已正确传递,但不知何故我没有重定向到Delete.php,有人可以在上一行中注意到该问题吗?

The value is passed correctly but somehow I don't get redirected to Delete.php can anyone note the problem in the above line?

推荐答案

摆脱URL中的空格:

<a href="Delete.php?PID=<?php echo $row['PersonID']; ?>"> Delete </a>

这篇关于使用定位标记将值传递到另一个php页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆