Code: Select all
<?php
$acc_stat= $_SESSION['js_account']['acc_stat'];
$prof_stat = $_SESSION['js_profile']['prof_stat'];
$res_stat = $_SESSION['js_resume']['res_stat'];
$pic_stat = $_SESSION['js_resume']['pic_stat'];
$file_stat = $_SESSION['js_resume']['file_stat'];
function check_progress($acc_stat, $prof_stat, $res_stat, $pic_stat, $file_stat)
{
if ($acc_stat == "yes")
{
echo "<a href=upload_profile.php > Step 2: Upload Profile NOW!</a>";
}
elseif ($acc_stat == "yes" && $prof_stat == "yes")
{
echo "<a href=upload_resume_1.php >Step 3: Upload Resume NOW!</a>";
}
elseif ($acc_stat == "yes" && $prof_stat == "yes" && $res_stat == "yes")
{
echo "<a href=upload_pic.php ><BR>Step 4: Upload Photo NOW!</a>";
}
elseif ($acc_stat == "yes" && $prof_stat == "yes" && $res_stat == "yes" && $pic_stat == "yes")
{
echo "<a href=upload_file.php >Step 5: Upload MS Word files NOW!</a>";
}
elseif ($acc_stat == "yes" && $prof_stat == "yes" && $res_stat == "yes" && $pic_stat == "yes" && $file_stat == "yes")
{
echo "Please activate your Candidate Portfolio!";
}
}
?>it echos nothing at all.
Thanks in advance!
Batoe