Ive been trying to figure this out for 36 hours now. I have easyjobportal and everything works fine except when you try to apply for a posistion. When you click apply is redirects to "Internet Explorer cannot display the webpage" Please help...
system_job_apply.php
<?
$action = "apply";
setcookie("cjobs" , "-$job-" );
setcookie("caction" , $action );
setcookie("cbackurl" , $backurl );
header("Location:system_job_process.php");
?>
system_job_process.php
<?
include("setting.php");
$tmp_jobs = grab_multiple_fields($_POST['job_id']);
$tmp_action = $action;
$tmp_backurl = $backurl;
if ($cjobs ){ $tmp_jobs = $cjobs; }
if ($caction ){ $tmp_action = $caction; }
if ($cbackurl ){ $tmp_backurl = $cbackurl; }
if (!$clogin_jobseeker) {
setcookie("caction" , $tmp_action );
setcookie("cjobs" , $tmp_jobs );
setcookie("cbackurl" , $tmp_backurl );
$destination = "jobseeker_login.php";
}
else {
$processed = 0;
$arr_jobs = split("-", $tmp_jobs);
$destination = $tmp_backurl . "#list";
$db_connect = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($db_name, $db_connect) || die(mysql_error());
for ($i=0; $i<= sizeof($arr_jobs); $i++) {
$cur_job = $arr_jobs[$i];
if ($cur_job) {
$processed++;
// procedures for adding favourite
if ($tmp_action == "favourite") {
$sql_query = "SELECT * FROM jobseeker_favourite WHERE favourite_jobseeker = '$clogin_jobseeker' AND favourite_job = '$cur_job'";
$result = mysql_query($sql_query) or die(mysql_error());
$found = mysql_num_rows($result);
if (!$found) {
$sql_query = "
INSERT INTO jobseeker_favourite
SET
favourite_jobseeker = '$clogin_jobseeker',
favourite_job = '$cur_job',
favourite_date = '$date_database'
";
mysql_query($sql_query) or die(mysql_error());
}
} // if ($tmp_action == "favourite")
// procedures for quick apply
if ($tmp_action == "apply") {
$sql_query = "SELECT * FROM job_application WHERE application_jobseeker = '$clogin_jobseeker' AND application_job = '$cur_job'";
$result = mysql_query($sql_query) or die(mysql_error());
$found = mysql_num_rows($result);
if (!$found) {
$sql_query = "
INSERT INTO job_application
SET
application_jobseeker = '$clogin_jobseeker',
application_job = '$cur_job',
application_date = '$date_database'
";
mysql_query($sql_query) or die(mysql_error());
}
}
} // if ($cur_job)
} // enf for
mysql_close($db_connect);
setcookie("cjobs" , "" );
setcookie("caction" , "" );
setcookie("cbackurl" , "" );
setcookie("warning" , $tmp_action );
setcookie("cresponse_processed" , $processed );
}
header("Location:$destination");
?>