|
|
@ -42,7 +42,7 @@ if ($job_id > 0) { |
|
|
|
// Check if the logged-in user is a job seeker,employer and is the one who posted the job |
|
|
|
// Check if the logged-in user is a job seeker,employer and is the one who posted the job |
|
|
|
$is_job_seeker = ($_SESSION['user_type'] === 'Job seeker'); |
|
|
|
$is_job_seeker = ($_SESSION['user_type'] === 'Job seeker'); |
|
|
|
$is_employer = ($_SESSION['user_type'] === 'Employer'); |
|
|
|
$is_employer = ($_SESSION['user_type'] === 'Employer'); |
|
|
|
$_isemployer_id = ($_SESSION['employer_id'] ==='employer_id'); |
|
|
|
|
|
|
|
// Handle job application |
|
|
|
// Handle job application |
|
|
|
if (isset($_POST['apply']) && $is_job_seeker) { |
|
|
|
if (isset($_POST['apply']) && $is_job_seeker) { |
|
|
|
// Get seeker_id from session |
|
|
|
// Get seeker_id from session |
|
|
|