Home > Backend Development > PHP Tutorial > get传递解决思路

get传递解决思路

WBOY
Release: 2016-06-13 13:34:41
Original
931 people have browsed it

get传递

现在需要把$rows['S_CLASS']这个值一起传递进去这个页面
要怎么书写?

------解决方案--------------------
&s_class='>
------解决方案--------------------
echo "
";
------解决方案--------------------
将$row定义为全局变量,存放于中转页面:

PHP code

<?php //manage.php
$rows = array(...);
?>
<?php //链接页面
include("manage.php");
<a href='stud_del.php?s_id=$rows[S_ID]'>a
Copy after login
?>
------解决方案--------------------
“>传送
到stud_del.php这个页面就用$id=$_GET['id']接收,这样就行啦。
------解决方案--------------------

探讨
echo "";

------解决方案--------------------
加一个&就可以啊

------解决方案--------------------
在规定的长度内都可以使用 & 来连接各种变量传递
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template