Php 在页面之间传递会话

Php 在页面之间传递会话,php,session,Php,Session,我将使用session将变量从上一页传递到当前页,代码如下: 上一页: <?php session_start(); $job_remarks = 'ASAS'; $_SESSION["ref"] = $job_remarks ; echo $_SESSION["ref"] ; .. <form id="employee" name="employee" method="post" action="nextapge.php"> <input type

我将使用session将变量从上一页传递到当前页,代码如下:

上一页:

<?php   

session_start();
$job_remarks = 'ASAS'; 

$_SESSION["ref"] = $job_remarks ;
echo  $_SESSION["ref"] ; 

..
<form id="employee" name="employee" method="post" action="nextapge.php">  
<input type="submit" value="Apply Now">

$job\u source\u link
没有被设置在任何地方…您能解释一下主机服务器上什么不工作吗?错误消息?空字符串?还有什么?我已经编辑了这个问题,很抱歉我的输入错误。我确信会话变量必须能够从一个页面切换到另一个页面,但不能在web服务器中。此外,我使用filezilla客户端通过ftptypo上传网站??action=“nextapge.php”>检查前后是否有空白。同时运行此代码,并报告错误(-1);找出警告/错误
<?php   

session_start();

$refernce = isset($_POST['ref']) ? $_POST['ref'] : $_SESSION["ref"];

$refernce  =   $_SESSION["ref"];
    echo $refernce;