通过超链接将会话变量从第1页传递到第2页。 [英] Passing a session variable from page 1 to page 2 via a hyperlink.

查看:54
本文介绍了通过超链接将会话变量从第1页传递到第2页。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..


我回来了另一个我似乎无法解决的问题。我有动态生成的超链接,这些超链接是以表格格式从while循环创建的。

每个超链接都应该通过具有THAT生成链接的会话将用户带到下一页。 (我真的不想为此使用GET)必须使用链接生成的值传递到下一页。取决于该数字将决定将在下一页显示的内容。


我终于明白我需要一个数组才能这样做所以我开始寻找一个例子,想出了这个:


Page 1(超链接)

[PHP] $ theArray = array();

$ theArray [''incident_Number_Id''] =''incident_Number_Id'';

$ _SESSION [''incident_Number_Id''] = $ theArray; [/ PHP]


我把它放到用户可以选择的表格页面中。


从这里,我迷路了..有人可以说明我需要去的方向吗?


谢谢,


Frank

Hi all..

I''m back with another problem that I just can''t seem to solve. I have dynamically generated hyperlinks that are created from a while loop in tabular format.

Each hyperlink should take the user to the next page by way of a session with THAT generated link. (I really don''t want to use GET for this) That links generated value must be used to pass to the next page. Depending on what that number is will determine what will be displayed on the next page.

It finally dawns on me that I need an array to do this so I started looking for an example and came up with this:

Page 1 (the hyperlinks)
[PHP] $theArray = array();
$theArray[''incident_Number_Id''] = ''incident_Number_Id'';
$_SESSION[''incident_Number_Id''] = $theArray; [/PHP]

I put this into the tabular page that the user can choose from.

From here, I am lost.. Can someone shed some light or point me in the direction in which I need to go please.

Thanks,

Frank

推荐答案

theArray = array();
theArray = array();


theArray [''incident_Number_Id''] =''incident_Number_Id'';
theArray[''incident_Number_Id''] = ''incident_Number_Id'';


_SESSION [''incident_Number_Id''] =
_SESSION[''incident_Number_Id''] =


这篇关于通过超链接将会话变量从第1页传递到第2页。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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