Passing values to another php page using anchor tag

别说谁变了你拦得住时间么 提交于 2019-12-03 22:01:56

Get rid of the space in your URL:

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

Delete the spaces before and after the '=':

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

If you have this:

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

No more problem in the line. You should check other code.

Code is very well written. I don't know about your database fields and your php file naming conventions but this might help you.

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

It is same as above but might be it'll helpful. Check your file name delete.php as same in your directory. check your database field name. Is it same you are using ?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!