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");


?>

Recommended Answers

All 2 Replies

Why don't you contact the EasyJobPortal Support? It sounds like a setup problem but unless someone here has used this package, chances are they you won't get an answer on this forum.

Whatever page it is trying to go to (you weren't specific on that) probably doesn't exist or it doesn't exist in the directory where it is trying to find it. If it is the latter (and assuming that this is a standard system module), then I would double check the config to make sure that all of the directories are properly defined.

Thank you for the reply...

I called EasyJobPortal before I came here asking questions. They said it was my host not configured right. So I went to godaddy. Same problem, I contacted EasyJobPortal again and they said it was Global needed to be turned on. So I did that. Nothing worked.

It shouldn’t redirect at all. It should stay on the same page with a message "you have now applied for this job"

Does the code look correct?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.